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.Map;
import java.util.UUID; import java.util.UUID;
import java.util.stream.Collectors; 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. * Used for parsing Inspect page out of database data and the html.
@ -79,7 +80,7 @@ public class InspectPageParser extends PageParser {
addValue("kickCount", timesKicked); addValue("kickCount", timesKicked);
Map<String, Long> playtimeByServer = sessionsTable.getPlaytimeByServer(uuid); 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> geolocations = db.getIpsTable().getGeolocations(uuid);
List<String> nicknames = db.getNicknamesTable().getNicknames(uuid).stream() List<String> nicknames = db.getNicknamesTable().getNicknames(uuid).stream()
@ -193,5 +194,4 @@ public class InspectPageParser extends PageParser {
addValue("playerClassification", HtmlStructure.separateWithDots(active, banned, op)); addValue("playerClassification", HtmlStructure.separateWithDots(active, banned, op));
} }
} }

View File

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

View File

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