2013-07-24 107 views
0

使用$('#container').highcharts('StockChart', { ...時,y軸的最高值未顯示。如果我在沒有StockChart的情況下嘗試它,那沒問題。 http://jsfiddle.net/h5bSV/3/中的示例缺少值430。y軸的最高值未顯示

是否有可能顯示此標籤?

$(function() { 
$.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=new-intraday.json&callback=?', function(data) { 

    // create the chart 
    $('#container').highcharts('StockChart', { 


     title: { 
      text: 'AAPL stock price by minute' 
     }, 
     tooltip:{ 
      formatter:function(){ 
       return "open: " + this.points[0].point.open + 'close: ' + this.points[0].point.close + ' high: ' + this.points[0].point.high + ' low:' + this.points[0].point.low; 
      } 

     }, 

     series : [{ 
      name : 'AAPL', 
      type: 'candlestick', 
      data : data, 
      tooltip: { valueDecimals: 2} 
     }] 
    }); 
}); 
}); 

回答