0
我想在图表上显示多行,绘制数字和日期。我希望X轴始终显示从一月到十二月的所有月份,即使只有二月和三月的数据。我创建了一个小提琴here。我怎样才能做到这一点?你可以在小提琴中看到只有我有数据的月份。覆盖Highcharts X轴
我也想让X轴显示'Jan','Feb'等,并且没有数字。这可能吗?
到目前为止我的代码是:
$('#container').highcharts({
title: {
text: 'Chart reflow is set to true'
},
subtitle: {
text: 'When resizing the window or the frame, the chart should resize'
},
xAxis: {
type: "datetime"
},
series: [{
data:[[1456444800000,173682],[1456531200000,21136],[1457049600000,21136],[1457395200000,199158],[1457913600000,413265],[1458777600000,21136],[1459209600000,199158],[1459987200000,413265],[1460505600000,21136],[1461024000000,199158],[1461715200000,413265],[1462406400000,199158]]
}]
});