这是我的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的末尾。请帮助。