MCSM: поправил вывод графика
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user