最佳答案
我刚刚更改了您的 xAxis 的代码
这里是:
xAxis: [{
type: 'datetime',
labels: {
formatter: function() {
return Highcharts.dateFormat('%e', this.value);
}
},
tickInterval: 1 * 24 * 3600 * 1000
},
{ lineWidth: 0,
minorGridLineWidth: 0,
lineColor: 'transparent',
minorTickLength: 0,
tickLength: 0,
type: 'datetime',
labels: {
formatter: function() {
return Highcharts.dateFormat('%b', this.value);
}
},
tickInterval: 30 *24 * 3600 * 1000
}]
有关详细信息,请点击此 jsFiddle 链接 http://jsfiddle.net/3nLmxs89/1/
关于javascript - xaxis 定制中的 Highcharts 日期,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25970395/