mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-27 11:37:41 +01:00
Fix Error 12 for TPS graph
Made all lines but TPS into AreaSpline graphs (semi-transparent)
This commit is contained in:
parent
05b00778a1
commit
bc22a9d021
@ -24,7 +24,7 @@ public class TPSGraphCreator {
|
||||
List<Point> points = tpsData.stream()
|
||||
.map(tps -> new Point(tps.getDate(), tps.getTps()))
|
||||
.collect(Collectors.toList());
|
||||
return ScatterGraphCreator.scatterGraph(points, true);
|
||||
return SeriesCreator.seriesGraph(points, true);
|
||||
|
||||
}
|
||||
|
||||
|
@ -673,7 +673,7 @@
|
||||
var playersOnlineSeries = {
|
||||
name: 'Players Online',
|
||||
data: %playersonlineseries%,
|
||||
type: 'spline',
|
||||
type: 'areaspline',
|
||||
color: '#%playersgraphcolor%',
|
||||
tooltip: {
|
||||
valueDecimals: 0
|
||||
@ -692,7 +692,7 @@
|
||||
var cpuSeries = {
|
||||
name: 'CPU Usage',
|
||||
data: %cpuseries%,
|
||||
type: 'spline',
|
||||
type: 'areaspline',
|
||||
color: '#e0d264',
|
||||
tooltip: {
|
||||
pointFormat: '{series.name}: <b>{point.y:.2f}%</b>'
|
||||
@ -701,7 +701,7 @@
|
||||
var ramSeries = {
|
||||
name: 'RAM Usage',
|
||||
data: %ramseries%,
|
||||
type: 'spline',
|
||||
type: 'areaspline',
|
||||
color: '#7dcc24',
|
||||
tooltip: {
|
||||
valueDecimals: 0
|
||||
@ -711,7 +711,7 @@
|
||||
var entitySeries = {
|
||||
name: 'Loaded Entities',
|
||||
data: %entityseries%,
|
||||
type: 'spline',
|
||||
type: 'areaspline',
|
||||
color: '#ac69ef',
|
||||
tooltip: {
|
||||
valueDecimals: 0
|
||||
@ -721,7 +721,7 @@
|
||||
var chunkSeries = {
|
||||
name: 'Loaded Chunks',
|
||||
data: %chunkseries%,
|
||||
type: 'spline',
|
||||
type: 'areaspline',
|
||||
color: '#b58310',
|
||||
tooltip: {
|
||||
valueDecimals: 0
|
||||
@ -811,6 +811,11 @@
|
||||
}]
|
||||
},
|
||||
title: {text: 'Players Online'},
|
||||
plotOptions: {
|
||||
areaspline: {
|
||||
fillOpacity: 0.4
|
||||
}
|
||||
},
|
||||
series: [playersOnlineSeries]
|
||||
});
|
||||
}
|
||||
@ -838,7 +843,12 @@
|
||||
type: 'all',
|
||||
text: 'All'
|
||||
}]
|
||||
},
|
||||
},
|
||||
plotOptions: {
|
||||
areaspline: {
|
||||
fillOpacity: 0.4
|
||||
}
|
||||
},
|
||||
title: {text: 'Players Online'},
|
||||
series: [playersOnlineSeries]
|
||||
});
|
||||
@ -893,6 +903,11 @@
|
||||
height: '55%',
|
||||
lineWidth: 2
|
||||
}],
|
||||
plotOptions: {
|
||||
areaspline: {
|
||||
fillOpacity: 0.4
|
||||
}
|
||||
},
|
||||
title: {text: 'Ticks Per Second'},
|
||||
series: [tpsSeries, playersOnlineSeries]
|
||||
});
|
||||
@ -947,6 +962,11 @@
|
||||
offset: 0,
|
||||
lineWidth: 2
|
||||
}],
|
||||
plotOptions: {
|
||||
areaspline: {
|
||||
fillOpacity: 0.4
|
||||
}
|
||||
},
|
||||
title: {text: 'Resource Usage'},
|
||||
series: [cpuSeries, ramSeries]
|
||||
});
|
||||
@ -1001,6 +1021,11 @@
|
||||
offset: 0,
|
||||
lineWidth: 2
|
||||
}],
|
||||
plotOptions: {
|
||||
areaspline: {
|
||||
fillOpacity: 0.4
|
||||
}
|
||||
},
|
||||
title: {text: 'World Load'},
|
||||
series: [entitySeries, chunkSeries]
|
||||
});
|
||||
|
@ -490,7 +490,7 @@
|
||||
var playersOnlineSeries = {
|
||||
name: 'Online',
|
||||
data: %playersonlineseries%,
|
||||
type: 'spline',
|
||||
type: 'areaspline',
|
||||
color: '#%playersgraphcolor%',
|
||||
tooltip: {
|
||||
valueDecimals: 0
|
||||
@ -553,6 +553,11 @@
|
||||
text: 'All'
|
||||
}]
|
||||
},
|
||||
plotOptions: {
|
||||
areaspline: {
|
||||
fillOpacity: 0.4
|
||||
}
|
||||
},
|
||||
title: {text: 'Online Activity'},
|
||||
series: [playersOnlineSeries]
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user