2013-04-22 57 views
0

我试过Y轴的最小设定为1,在我JS提琴在这里看到:http://jsfiddle.net/e2XPx/Highchart JS设置分Y轴从0到1

任何人都知道如何让0值是1在默认情况下?

$(function() { 
    $('#container0').highcharts({ 
     chart: { 
      type: 'line' 
     }, 
     title: { 
      text: 'Keyword: test' 
     }, 
     xAxis: { 
      categories:['04-14-2013','04-15-2013','04-16-2013','04-17-2013','04-18-2013','04-19-2013','04-20-2013'] 
     }, 
     yAxis: { 
      allowDecimals: false, 
      min: 1, 


      title: { 
       text: 'Number' 

      }, 
      reversed: true 
     }, 
     series: [{ 
      name: 'test', 
      data: [1,4,5,2,6,7,8] 
     }], 
    }); 
}); 

回答