Added pie color placeholders to html files

This commit is contained in:
Risto Lahtela 2017-09-25 10:58:14 +03:00
parent 0898fc2238
commit c127f03b00
3 changed files with 7 additions and 3 deletions

View File

@ -33,6 +33,7 @@ import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.stream.Collectors;
import main.java.com.djrapitops.plan.utilities.html.graphs.ServerPreferencePieCreator;
/**
* Used for parsing Inspect page out of database data and the html.
@ -79,7 +80,7 @@ public class InspectPageParser extends PageParser {
addValue("kickCount", timesKicked);
Map<String, Long> playtimeByServer = sessionsTable.getPlaytimeByServer(uuid);
// TODO Server preference pie
addValue("serverPieSeries", ServerPreferencePieCreator.createSeriesData(playtimeByServer));
List<String> geolocations = db.getIpsTable().getGeolocations(uuid);
List<String> nicknames = db.getNicknamesTable().getNicknames(uuid).stream()
@ -193,5 +194,4 @@ public class InspectPageParser extends PageParser {
addValue("playerClassification", HtmlStructure.separateWithDots(active, banned, op));
}
}
}

View File

@ -199,11 +199,13 @@
var serverSeries = {
name:'Server Playtime',
colorByPoint:true,
colors: ${serverPieColors},
data: ${serverPieSeries}
}
var worldSeries = {
name:'World Playtime',
colorByPoint:true,
colors: ${worldPieColors},
data: ${worldPieSeries}
};
var gmSeries = ${gmSeries};

View File

@ -409,6 +409,7 @@
var activitySeries = {
name: 'Players',
colorByPoint: true,
colors: ${activityPieColors},
data: [{
name: 'Active',
y: ${active}
@ -428,6 +429,7 @@
var worldSeries = {
name: 'World Playtime',
colorByPoint: true,
colors: ${worldPieColors},
data: ${worldSeries}
};
var gmSeries = ${gmSeries};