我正在使用highstock在图表上显示多系列的二维数据。但高库存转移酒吧的系列,而不是显示在一个技巧!
我使用了以下代码:
workData = [
/* 2009-01-01 */
[1262048400000, 6, 10],
[1262134800000, 7.75, 12],
[1262221200000, 7, 16]
];
freeData = [
[1262048400000, 10, 12],
[1262134800000, 13, 16]
];
missionData = [
[1262134800000, 12, 13]
];
$(function() {
$('#container').highcharts('StockChart', {
chart: {
type: 'columnrange'
},
xAxis: {
minTickInterval: 24*3600*1000
},
series: [{
name: 'Work',
data: workData ,
color: 'green'
}, {
name: 'Free',
data: freeData,
color:'blue'
}, {
name: 'Mission',
data: missionData ,
color: 'red'
}]
});
});在上面的代码中,我有3个系列的二维数据。
发布于 2013-05-16 20:53:13
你可以为系列设置grouping: false,看看:http://jsfiddle.net/E83Ef/1/
https://stackoverflow.com/questions/16570357
复制相似问题