嘿,夥計們我試圖在我的高圖表上繪製虛線,但是當我嘗試這些圖形時,圖表或者將圖表推出了位置或者跳過圖表並繼續過去。 「M還試圖把標籤貼在每個條形圖頂部太試圖在圖表上繪製虛線
這裏是我的代碼
$(function() {
$('#container5').highcharts({
chart: {
type: 'column'
},
title: {
text: ''
},
subtitle: {
text: ''
},
tooltip: { enabled: false },
exporting: {
enabled:false
},
credits: {
enabled: false
},
legend: {
enabled:false
},
xAxis: {
labels:
{
enabled: false
},
lineColor: 'transparent',
minorTickLength: 0,
tickLength: 0,
min: 0,
lineWidth: 0,
minorGridLineWidth: 0,
lineColor: 'transparent',
gridLineColor: 'transparent',
title: {
text: ''
},
categories: ['']
},
yAxis: {
labels:
{
enabled: false
},
lineColor: 'transparent',
minorTickLength: 0,
tickLength: 0,
min: 0,
lineWidth: 0,
minorGridLineWidth: 0,
lineColor: 'transparent',
gridLineColor: 'transparent',
title: {
text: ''
},
min: 0,
title: {
text: ' '
},
},
plotOptions: {
column: {
stacking: 'normal',
animation: false
},
series: {
states: {
hover: {
enabled: false
}
}
}
},
series: [{
name: '10',
data: [10],
pointWidth: 50,
groupPadding: 0,
color: '#f7a35c'
}, {
name: '12',
data: [12],
pointWidth: 50,
groupPadding: 0,
color: '#004A98'
}, {
name: '12',
data: [12],
pointWidth: 50,
groupPadding: 0,
color: '#509ADC'
}]
});
});
和
<div class="col-md-2" id="container5" style="width: 200px; height: 700px; margin:auto"></div>
它看起來像
,但我希望它看起來像這樣
是否有反正我可以對齊這些plotline到左邊? –
我已經嘗試過了,這很難,但你可以檢查我能做的所有事情,因爲它可以幫助你。 http://jsfiddle.net/m85yv3aq/9/ – Sapikelio
它可以幫助你嗎? – Sapikelio