2013-03-06 46 views

回答

0

你也可以使用該功能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.... 

的優勢,這種方法是,你可以在開始動態地(而不是改變它舞臺)

相關問題