mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-28 03:57:33 +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()
|
List<Point> points = tpsData.stream()
|
||||||
.map(tps -> new Point(tps.getDate(), tps.getTps()))
|
.map(tps -> new Point(tps.getDate(), tps.getTps()))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
return ScatterGraphCreator.scatterGraph(points, true);
|
return SeriesCreator.seriesGraph(points, true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -673,7 +673,7 @@
|
|||||||
var playersOnlineSeries = {
|
var playersOnlineSeries = {
|
||||||
name: 'Players Online',
|
name: 'Players Online',
|
||||||
data: %playersonlineseries%,
|
data: %playersonlineseries%,
|
||||||
type: 'spline',
|
type: 'areaspline',
|
||||||
color: '#%playersgraphcolor%',
|
color: '#%playersgraphcolor%',
|
||||||
tooltip: {
|
tooltip: {
|
||||||
valueDecimals: 0
|
valueDecimals: 0
|
||||||
@ -692,7 +692,7 @@
|
|||||||
var cpuSeries = {
|
var cpuSeries = {
|
||||||
name: 'CPU Usage',
|
name: 'CPU Usage',
|
||||||
data: %cpuseries%,
|
data: %cpuseries%,
|
||||||
type: 'spline',
|
type: 'areaspline',
|
||||||
color: '#e0d264',
|
color: '#e0d264',
|
||||||
tooltip: {
|
tooltip: {
|
||||||
pointFormat: '{series.name}: <b>{point.y:.2f}%</b>'
|
pointFormat: '{series.name}: <b>{point.y:.2f}%</b>'
|
||||||
@ -701,7 +701,7 @@
|
|||||||
var ramSeries = {
|
var ramSeries = {
|
||||||
name: 'RAM Usage',
|
name: 'RAM Usage',
|
||||||
data: %ramseries%,
|
data: %ramseries%,
|
||||||
type: 'spline',
|
type: 'areaspline',
|
||||||
color: '#7dcc24',
|
color: '#7dcc24',
|
||||||
tooltip: {
|
tooltip: {
|
||||||
valueDecimals: 0
|
valueDecimals: 0
|
||||||
@ -711,7 +711,7 @@
|
|||||||
var entitySeries = {
|
var entitySeries = {
|
||||||
name: 'Loaded Entities',
|
name: 'Loaded Entities',
|
||||||
data: %entityseries%,
|
data: %entityseries%,
|
||||||
type: 'spline',
|
type: 'areaspline',
|
||||||
color: '#ac69ef',
|
color: '#ac69ef',
|
||||||
tooltip: {
|
tooltip: {
|
||||||
valueDecimals: 0
|
valueDecimals: 0
|
||||||
@ -721,7 +721,7 @@
|
|||||||
var chunkSeries = {
|
var chunkSeries = {
|
||||||
name: 'Loaded Chunks',
|
name: 'Loaded Chunks',
|
||||||
data: %chunkseries%,
|
data: %chunkseries%,
|
||||||
type: 'spline',
|
type: 'areaspline',
|
||||||
color: '#b58310',
|
color: '#b58310',
|
||||||
tooltip: {
|
tooltip: {
|
||||||
valueDecimals: 0
|
valueDecimals: 0
|
||||||
@ -811,6 +811,11 @@
|
|||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
title: {text: 'Players Online'},
|
title: {text: 'Players Online'},
|
||||||
|
plotOptions: {
|
||||||
|
areaspline: {
|
||||||
|
fillOpacity: 0.4
|
||||||
|
}
|
||||||
|
},
|
||||||
series: [playersOnlineSeries]
|
series: [playersOnlineSeries]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -838,7 +843,12 @@
|
|||||||
type: 'all',
|
type: 'all',
|
||||||
text: 'All'
|
text: 'All'
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
|
plotOptions: {
|
||||||
|
areaspline: {
|
||||||
|
fillOpacity: 0.4
|
||||||
|
}
|
||||||
|
},
|
||||||
title: {text: 'Players Online'},
|
title: {text: 'Players Online'},
|
||||||
series: [playersOnlineSeries]
|
series: [playersOnlineSeries]
|
||||||
});
|
});
|
||||||
@ -893,6 +903,11 @@
|
|||||||
height: '55%',
|
height: '55%',
|
||||||
lineWidth: 2
|
lineWidth: 2
|
||||||
}],
|
}],
|
||||||
|
plotOptions: {
|
||||||
|
areaspline: {
|
||||||
|
fillOpacity: 0.4
|
||||||
|
}
|
||||||
|
},
|
||||||
title: {text: 'Ticks Per Second'},
|
title: {text: 'Ticks Per Second'},
|
||||||
series: [tpsSeries, playersOnlineSeries]
|
series: [tpsSeries, playersOnlineSeries]
|
||||||
});
|
});
|
||||||
@ -947,6 +962,11 @@
|
|||||||
offset: 0,
|
offset: 0,
|
||||||
lineWidth: 2
|
lineWidth: 2
|
||||||
}],
|
}],
|
||||||
|
plotOptions: {
|
||||||
|
areaspline: {
|
||||||
|
fillOpacity: 0.4
|
||||||
|
}
|
||||||
|
},
|
||||||
title: {text: 'Resource Usage'},
|
title: {text: 'Resource Usage'},
|
||||||
series: [cpuSeries, ramSeries]
|
series: [cpuSeries, ramSeries]
|
||||||
});
|
});
|
||||||
@ -1001,6 +1021,11 @@
|
|||||||
offset: 0,
|
offset: 0,
|
||||||
lineWidth: 2
|
lineWidth: 2
|
||||||
}],
|
}],
|
||||||
|
plotOptions: {
|
||||||
|
areaspline: {
|
||||||
|
fillOpacity: 0.4
|
||||||
|
}
|
||||||
|
},
|
||||||
title: {text: 'World Load'},
|
title: {text: 'World Load'},
|
||||||
series: [entitySeries, chunkSeries]
|
series: [entitySeries, chunkSeries]
|
||||||
});
|
});
|
||||||
|
@ -490,7 +490,7 @@
|
|||||||
var playersOnlineSeries = {
|
var playersOnlineSeries = {
|
||||||
name: 'Online',
|
name: 'Online',
|
||||||
data: %playersonlineseries%,
|
data: %playersonlineseries%,
|
||||||
type: 'spline',
|
type: 'areaspline',
|
||||||
color: '#%playersgraphcolor%',
|
color: '#%playersgraphcolor%',
|
||||||
tooltip: {
|
tooltip: {
|
||||||
valueDecimals: 0
|
valueDecimals: 0
|
||||||
@ -553,6 +553,11 @@
|
|||||||
text: 'All'
|
text: 'All'
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
|
plotOptions: {
|
||||||
|
areaspline: {
|
||||||
|
fillOpacity: 0.4
|
||||||
|
}
|
||||||
|
},
|
||||||
title: {text: 'Online Activity'},
|
title: {text: 'Online Activity'},
|
||||||
series: [playersOnlineSeries]
|
series: [playersOnlineSeries]
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user