0
如何設置系列數據(類別),而不是系列(圖例) http://jsfiddle.net/n7zxvc4q/highcharts如何設定y軸指數系列數據(類別),而不是系列(圖例)
Highcharts.chart('container', {
chart: {
marginRight: 80
},
xAxis: {
categories: ['time', 'bytes']
},
yAxis: [{
title: {
text: 'seconds'
}
}, {
title: {
text: 'Mb'
},
opposite: true
}],
series: [{
type: 'column',
data: [29.9, 71.5],
name: '192.168.0.1'
}, {
type: 'column',
data: [14.1, 95.6],
name: '192.168.0.2'
}, {
type: 'column',
data: [34.1, 75.6],
name: '192.168.0.3'
}]
});
y軸指數
我希望「時間」使用左側的y軸:秒(y軸:0)和「字節」使用右側的y軸:Mb(y軸x:1)
我發現其他人不是我想要的方式它就像這樣
http://jsfiddle.net/141nw7vw/
Highcharts.chart('container', {
chart: {
marginRight: 80
},
xAxis: {
categories: ['192.168.0.1', '192.168.0.2','192.168.0.3']
},
yAxis: [{
title: {
text: 'seconds'
}
}, {
title: {
text: 'Mb'
},
opposite: true
}],
series: [{
type: 'column',
data: [29.9, 71.5],
name: 'time',
yAxis:0
}, {
type: 'column',
data: [14.1, 95.6],
name: 'seconds',
yAxis:1
}]
});
謝謝,它的工作!你救我的一天! – zhaozhili