[英]How do you increase the height of the x-axis labels area on a highchart.js chart?
[英]How to increase the height of highchart?
我正在使用HighCharts顯示一些統計數據但我有一個問題,當x軸的值增加時,它會減少值。 我正在附上截圖。
你應該添加marginBottom:
chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'column',
marginRight: 130,
marginBottom: 70 /* HERE */
},
title: {
text: '@Model.Title',
x: -20
}
像這樣的東西會起作用:
var height = //get containers original height var new_height = height + (data.length * 10); $("#highcharts-0").css("{height:"+new_height+"}");
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.