![](/img/trans.png)
[英]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.