3
任何人都可以幫我解決這個問題嗎?我們正在嘗試爲我們的Web應用程序實施Highchart,但是由於接近點,某些圖表中的X軸標籤重疊。Highchart中的X軸標籤之間的填充
我們正在使用的X軸代碼:
Highcharts.setOptions({
xAxis: {
gridLineWidth: 1,
lineColor: '#000',
tickColor: '#000',
labels: {
style: {
color: '#000',
font: '11px Trebuchet MS, Verdana, sans-serif',
}
},
title: {
style: {
color: '#333',
fontWeight: 'bold',
fontSize: '12px',
fontFamily: 'Trebuchet MS, Verdana, sans-serif'
}
}
}
})
和
setXAxisParameters = {
categories: xAxisCategories,
title: {
text: xAxisTitle
},
labels: {
formatter: function() {
xVal = (this.value).split("#")[0];
if(xVal != '')
return xVal;
else
return '';
},
y: 5,
rotation: 90,
align: 'left'
}
}
在此先感謝。
旋轉已經解決了我的問題。我已將我的xAxis標籤變成90度。 –