这是一个具有指定类别的示例:http: //jsfiddle.net/galex/Fj25C/3/ 如果类别选项被注释,那么minorTickInterval 效果很好。是 Highcharts 错误还是选项有问题?
$(function () {
$('#container').highcharts({
chart: {
},
xAxis: {
tickInterval:1,
tickmarkPlacement: 'on',
gridLineWidth: 1,
categories: ["cat1","cat2","cat3","cat4","cat5"]
},
series: [{
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
}]
});
});