mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-21 05:50:18 +08:00
Added pie color placeholders to html files
This commit is contained in:
parent
0898fc2238
commit
c127f03b00
@ -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));
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -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};
|
||||
|
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user