use default y scale for graphs

This commit is contained in:
Nick Krecklow 2020-06-13 00:54:31 -05:00
parent a8a4c23e3a
commit 0c34a01186
No known key found for this signature in database
GPG Key ID: 5F149FDE156FFA94
2 changed files with 2 additions and 4 deletions

@ -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)