reference graphData instead of obscure self.data
This commit is contained in:
parent
b96b9dacc5
commit
8d211434df
@ -112,8 +112,8 @@ export class ServerRegistration {
|
|||||||
stroke: '#333',
|
stroke: '#333',
|
||||||
width: 1
|
width: 1
|
||||||
},
|
},
|
||||||
split: (self) => {
|
split: () => {
|
||||||
const [min, max, scale] = RelativeScale.scale(self.data[1], tickCount)
|
const [min, max, scale] = RelativeScale.scale(this._graphData[1], tickCount)
|
||||||
const ticks = RelativeScale.generateTicks(min, max, scale)
|
const ticks = RelativeScale.generateTicks(min, max, scale)
|
||||||
return ticks
|
return ticks
|
||||||
}
|
}
|
||||||
@ -122,8 +122,8 @@ export class ServerRegistration {
|
|||||||
scales: {
|
scales: {
|
||||||
Players: {
|
Players: {
|
||||||
auto: false,
|
auto: false,
|
||||||
range: (self) => {
|
range: () => {
|
||||||
const [scaledMin, scaledMax] = RelativeScale.scale(self.data[1], tickCount)
|
const [scaledMin, scaledMax] = RelativeScale.scale(this._graphData[1], tickCount)
|
||||||
return [scaledMin, scaledMax]
|
return [scaledMin, scaledMax]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user