Highstock图形没有达到目的

时间:2015-12-16 19:31:01

标签: javascript highcharts highstock

这是我的JavaScript代码:

  $.getJSON('https://www.highcharts.com/samples/data/from-sql.php?callback=?', function (data) {
        // Add a null value for the end date
        data = [].concat(data, [[Date.UTC(2011, 9, 14, 19, 59), null, null, null, null]]);
        // create the chart
        $('#container').highcharts('StockChart', {
            xAxis: {

        },
        tooltip: {
            pointFormat: '{series.name}: <b>{point.y}</b><br/>',
            valueSuffix: ' cm',
            shared: true
        },
        yAxis: {
            allowDecimals: false,
            floor: 0
        },
        rangeSelector: {
            selected: 1
        },
        credits: {
            enabled: false
        },
        series: [{
            data: data,
            marker: {
                enabled: true,
                radius: 1
            },
            shadow: true,
            tooltip: {
                valueDecimals: 1
            }
        }]
        });
    });

我的图片没有到达xAxis的末尾。请帮助。

jsfiddle:http://jsfiddle.net/Yura602/9a76yytu/

截图:enter image description here

0 个答案:

没有答案