我有一个图表,我application.I都能够自定义图表像下面的图像 添加额外的条列轴
这里的一切工作正常,但如何绘制在x轴是小节线,无论是这是可能的,或者not.I我加入一个小提琴手谁能帮我画的是巴线与每一个酒吧
代码
Highcharts.chart('container', {
chart: {
type: 'column'
},
title: {
text: 'Stacked column chart'
},
xAxis: {
categories: ['Apples', 'Oranges', 'Pears', 'Grapes', 'Bananas']
},
yAxis: {
min: 0,
title: {
text: 'Total fruit consumption'
},
stackLabels: {
enabled: true,
style: {
fontWeight: 'bold',
color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'
}
}
},
legend: {
align: 'right',
x: -30,
verticalAlign: 'top',
y: 25,
floating: true,
backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || 'white',
borderColor: '#CCC',
borderWidth: 1,
shadow: false
},
tooltip: {
headerFormat: '<b>{point.x}</b><br/>',
pointFormat: '{series.name}: {point.y}<br/>Total: {point.stackTotal}'
},
plotOptions: {
column: {
stacking: 'normal',
dataLabels: {
enabled: true,
color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white'
}
}
},
series: [{
name: 'John',
data: [5, 3, 4, 7, 2]
}, {
name: 'Jane',
data: [2, 2, 3, 2, 1]
}, {
name: 'Joe',
data: [1, 1, 1, 1, 1]
}]
});
如果你指的酒吧下方的虚线,然后我不相信这是可能在本地HighCharts。你必须将下面的一些元素粘在一起,并使用CSS。 –
@RoryMcCrossan:如果有什么方法可以在高图中找到酒吧的高度 – user3501613