mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-12 19:30:44 +01:00
Changed GM Pie so that the colors are always the same for each gamemode
This commit is contained in:
parent
7c5c171aec
commit
73b822b0ef
@ -79,10 +79,6 @@ public class WorldPieCreator {
|
||||
int j = 0;
|
||||
for (Map.Entry<String, Long> entry : gmTimes.entrySet()) {
|
||||
Long time = entry.getValue();
|
||||
if (time == 0) {
|
||||
j++;
|
||||
continue;
|
||||
}
|
||||
drilldownBuilder.append("['")
|
||||
.append(entry.getKey())
|
||||
.append("',")
|
||||
|
@ -12,6 +12,10 @@
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
var worldPieColors = [${worldPieColors}];
|
||||
var gmPieColors = [${gmPieColors}];
|
||||
</script>
|
||||
<header>
|
||||
<div>
|
||||
<div class="right fa-stack fa-lg" style="padding: 23px; margin:8px">
|
||||
@ -206,7 +210,7 @@
|
||||
var worldSeries = {
|
||||
name:'World Playtime',
|
||||
colorByPoint:true,
|
||||
colors: [${worldPieColors}],
|
||||
colors: worldPieColors,
|
||||
data: ${worldPieSeries}
|
||||
};
|
||||
var gmSeries = ${gmSeries};
|
||||
|
Loading…
Reference in New Issue
Block a user