我有一系列行,我在其上顯示自定義數據標籤,僅用於系列中的特定值。在窗口大小調整時,數據標籤正在從圖表中消失。有沒有解決這個問題的方法。 在此先感謝。Highcharts - 行系列中的定製數據標籤正在窗口大小上消失
我的代碼:
var options = {
chart : {
renderTo : 'container',
type : 'line',
},
xAxis : {
spacingTop: 50,
spacingBottom: 25,
categories : []
},
yAxis : [ {
min: 0,
minRange: 0.1
} ],
plotOptions: {
line:{
dataLabels: {
enabled:true,
defer:false,
formatter: function() {
count++;
if(this.y)
if(batch_info[count]!=0)
return batch_info[count];
}
}
}
},
series : []
};
`
窗口調整大小前:
:最大化窗口後,
你可以檢查元素這些標籤,並檢查他們的行爲發生了什麼?如果創建問題 –