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