我尝试使用像这样的Highcharts创建图表:
$('#container').highcharts({
chart: {
type: 'xrange',
title:{
text:''
}
},
xAxis: {
type: 'datetime',
opposite: true,
gridLineWidth: 1
},
yAxis: {
title: '',
categories: ['Prototyping', 'Development', 'Testing', 'aaaa', 'aaaa', 'aaaa', 'bbb'],
min: 0
},
series: [{
borderRadius: 5,
height: 0.8,
name: 'Project 1',
color: '#afafaf',
data: [...]
},
{
borderRadius: 5,
height: 0.8,
name: 'Project 2',
data: [...]
} ]
});
http://jsfiddle.net/tgba0t7g/46/
问题是没有显示没有数据的y轴类别。 如何显示所有y轴类别?