4
摆弄我的图表,我没有成功说服Highcharts停止y轴的值为5,它仍然只停留在6. Here is the fiddle。我设置了为什么我的“最大”值在Highcharts中不被接受?
yAxis:
{
max: 5
}
但它被忽略。感谢任何提示!
摆弄我的图表,我没有成功说服Highcharts停止y轴的值为5,它仍然只停留在6. Here is the fiddle。我设置了为什么我的“最大”值在Highcharts中不被接受?
yAxis:
{
max: 5
}
但它被忽略。感谢任何提示!
尝试将endOnTick:false
添加到y轴。
API为endOnTick
。
你也可以使用该功能setExtremes
例如,负载事件中:
// ...the setting object:
// some settings...
chart:{
renderTo: 'container',
type: 'column',
spacingBottom: 60,
marginLeft: 50,
marginTop: 70,
events: {
load:function(event){
var yAxis0=this.yAxis[0];
yAxis0.setExtremes(0, 5 , true, true);
}
}
},
// other settings....
的优势,这种方法是,你可以在开始动态地(而不是改变它舞台)