From 5c8cd7e8576bce3ad463746c64f1be5921868038 Mon Sep 17 00:00:00 2001 From: DmitriyMX Date: Wed, 3 May 2017 00:40:30 +0300 Subject: [PATCH] =?UTF-8?q?MCSM:=20=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20=D0=B3=D1=80?= =?UTF-8?q?=D0=B0=D1=84=D0=B8=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mcserver-manager/src/main/resources/components.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcserver-manager/src/main/resources/components.js b/mcserver-manager/src/main/resources/components.js index 53426f0..c601ce7 100644 --- a/mcserver-manager/src/main/resources/components.js +++ b/mcserver-manager/src/main/resources/components.js @@ -10,8 +10,8 @@ var NvLineChart = React.createClass({ nv.addGraph(function() { _this.chart = nv.models.lineChart().useInteractiveGuideline(true); - _this.chart.xAxis.axisLabel('Time (ms)').tickFormat(d3.format(',r')); - _this.chart.yAxis.axisLabel('Players (p)').tickFormat(d3.format('.02f')); + _this.chart.xAxis.axisLabel('Time').tickFormat(function(d){ return d3.time.format('%X')(new Date(d)); }); + _this.chart.yAxis.axisLabel('Players').tickFormat(d3.format('d')); _this.d3ChartData = d3.select('#chart svg').datum([{ key: 'Online players',