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....
的優勢,這種方法是,你可以在開始動態地(而不是改變它舞臺)