【发布时间】:2015-03-13 06:53:30
【问题描述】:
我对 Highcharts 很陌生。我想制作一个示例图表,例如:
主要问题是,单个类别中有多个值。我无法减轻这种情况。
我写过这样的东西
$('#container').highcharts({
title: '',
credits: {
enabled: false
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar']
},
yAxis: {
min: 0,
title: {
text: ''
}
},
series: [
{
type: 'column',
showInLegend: false,
data: [[0, 5000, 11000], [0, 6000, 10000], [0, 8000, 5000], [1000, 2000, 4000],
[1000, 9000, 4800], [1500, 10000, 4000], [0, 6500, 4500]],
color: '#75b5ec'
},
{
type: 'spline',
data: [3, 2.67, 3],
showInLegend: false,
marker: {
lineWidth: 2,
lineColor: '#000000',
fillColor: 'white'
}
}
]
});
请帮忙。提前致谢。
【问题讨论】:
-
看起来就像one of the demos。
-
是的,但他不想要所有的 xAxis 标签。他需要做的就是使用,tickInterval:4。 jsfiddle.net/4bf06xvv
标签: javascript highcharts axes