我正在尋找隱藏highcharts中的第一個yAxis標籤。我無法找到如何做這個選項。這個問題緊密地迴避了這個問題:Hide first yaxis label。然而,我正在尋找的解決方案是高層圖。隱藏Highcharts中的第一個yAxis標籤
從上面的圖片,我只是想爲-10被隱藏。我需要添加什麼options
來完成這個?
下面添加的代碼只是一個通用函數,我創建了一個參數,我已經命名了選項(一個對象),我已經設置了選項列表(如標題,字幕,系列)。 ..)。
var hc_bubble = function(options){
$(options.target).highcharts({
chart: {
type: 'bubble',
zoomType: 'xy'
},
title: {
text: options.title || 'unknown'
},
subtitle: {
text: options.subtitle || ''
},
xAxis: {
type: options.date || 'datetime',
labels: {
formatter: function() {
return Highcharts.dateFormat("%b %Y", this.value)
}
},
title: {
enabled: true,
text: options.xTitle || 'unknown'
},
startOnTick: true,
endOnTick: true,
showLastLabel: true
},
yAxis: {
title: {
text: options.yTitle || 'unknown'
}
},
tooltip:{
headerFormat: '<b>{series.name}</b><br>',
pointFormat: '{point.y} ' + options.yType || 'Connections'
},
series: options.series
});
}
[yAxis.showFirstLabel](http://api.highcharts.com/highcharts#yAxis.showFirstLabel)設置爲false。 –