答案 0 :(得分:1)
我刚刚更改了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/