Changed GM Pie so that the colors are always the same for each gamemode

This commit is contained in:
Rsl1122 2017-09-27 19:45:13 +03:00
parent 7c5c171aec
commit 73b822b0ef
2 changed files with 5 additions and 5 deletions

View File

@ -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("',")

View File

@ -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};