From 8d211434df9d4abaad5adf0d7e41d2213627a627 Mon Sep 17 00:00:00 2001 From: Nick Krecklow Date: Sun, 10 May 2020 23:42:44 -0500 Subject: [PATCH] reference graphData instead of obscure self.data --- assets/js/servers.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/js/servers.js b/assets/js/servers.js index ed9f70c..e860741 100644 --- a/assets/js/servers.js +++ b/assets/js/servers.js @@ -112,8 +112,8 @@ export class ServerRegistration { stroke: '#333', width: 1 }, - split: (self) => { - const [min, max, scale] = RelativeScale.scale(self.data[1], tickCount) + split: () => { + const [min, max, scale] = RelativeScale.scale(this._graphData[1], tickCount) const ticks = RelativeScale.generateTicks(min, max, scale) return ticks } @@ -122,8 +122,8 @@ export class ServerRegistration { scales: { Players: { auto: false, - range: (self) => { - const [scaledMin, scaledMax] = RelativeScale.scale(self.data[1], tickCount) + range: () => { + const [scaledMin, scaledMax] = RelativeScale.scale(this._graphData[1], tickCount) return [scaledMin, scaledMax] } }