我想显示具有不同 y 轴但相同 x 轴和相同类别的面积图和柱形图。
$('#container').highcharts({
title: {
text: 'Combination chart'
},
xAxis: {
categories: ['Apples', 'Oranges', 'Pears', 'Bananas', 'Plums']
},
labels: {
items: [{
html: 'Total fruit consumption',
style: {
left: '50px',
top: '18px',
color: (Highcharts.theme && Highcharts.theme.textColor) || 'black'
}
}]
},
series: [{
type: 'column',
name: 'Jane',
data: [3, 2, 1, 3, 4]
}, {
type: 'column',
name: 'John',
data: [2, 3, 5, 7, 6]
}, {
type: 'column',
name: 'Joe',
data: [4, 3, 3, 9, 0]
}, {
type: 'area',
name: 'Average',
data: [3, 2.67, 3, 6.33, 3.33],
center: [0, 80],
size: 100,
showInLegend: false,
dataLabels: {
enabled: false
}
}]
});
我想要这样,这里只显示示例图像(http://i.stack.imgur.com/H6rnm.png)