use default y scale for graphs
This commit is contained in:
parent
a8a4c23e3a
commit
0c34a01186
@ -201,7 +201,6 @@ export class GraphDisplayManager {
|
||||
|
||||
const series = this._app.serverRegistry.getServerRegistrations().map(serverRegistration => {
|
||||
return {
|
||||
scale: 'Players',
|
||||
stroke: serverRegistration.data.color,
|
||||
width: 2,
|
||||
value: (_, raw) => `${formatNumber(raw)} Players`,
|
||||
@ -287,7 +286,7 @@ export class GraphDisplayManager {
|
||||
}
|
||||
],
|
||||
scales: {
|
||||
Players: {
|
||||
y: {
|
||||
auto: false,
|
||||
range: () => {
|
||||
const visibleGraphData = this.getVisibleGraphData()
|
||||
|
@ -115,7 +115,6 @@ export class ServerRegistration {
|
||||
series: [
|
||||
{},
|
||||
{
|
||||
scale: 'Players',
|
||||
stroke: '#E9E581',
|
||||
width: 2,
|
||||
value: (_, raw) => `${formatNumber(raw)} Players`,
|
||||
@ -148,7 +147,7 @@ export class ServerRegistration {
|
||||
}
|
||||
],
|
||||
scales: {
|
||||
Players: {
|
||||
y: {
|
||||
auto: false,
|
||||
range: () => {
|
||||
const { scaledMin, scaledMax } = RelativeScale.scale(this._graphData[1], tickCount)
|
||||
|
Loading…
Reference in New Issue
Block a user