Archived
0

MCSM: поправил вывод графика

This commit is contained in:
2017-05-03 00:40:30 +03:00
parent 704d1f6fc6
commit 5c8cd7e857

View File

@@ -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',