未显示y轴的最高值

时间:2013-07-24 12:50:21

标签: highcharts highstock

使用$('#container').highcharts('StockChart', { ...时,未显示y轴的最高值。如果我在没有StockChart的情况下尝试,那就没关系。 http://jsfiddle.net/h5bSV/3/中的示例缺少值430。

是否有可能显示此标签?

$(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}
        }]
    });
});
});

1 个答案:

答案 0 :(得分:1)

您需要将ShowLastLabel设置为true。