<script>
$(document).ready( function() {
var seriesOptions = [];
/**
* Create the chart when all data is loaded
* @returns {undefined}
*/
function createChart() {
Highcharts.stockChart('chart23', {
rangeSelector: {
selected: 4
},
exporting: {
enabled: false
},
yAxis: {
plotLines: [{
value: 0,
width: 2,
color: 'silver'
}]
},
plotOptions:{
series:{
turboThreshold:0
}
},
tooltip: {
pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b> ({point.change}%)<br/>',
valueDecimals: 2,
split: true
},
series: seriesOptions
});
}
seriesOptions[0] = {
name: 'CREATED',
data: [1491292800000,18,1491296400000,31,1491300000000,30,1491303600000,46,1491307200000,37] // ADDED BRACKETS
};
seriesOptions[1] = {
name: 'RESOLVED',
data: [1491292800000,18,1491296400000,31,1491300000000,30,1491303600000,46,1491307200000,37] // ADDED BRACKETS
};
createChart();
});
</script>
正在渲染图表x / y轴,但没有行/数据,日期设置为1970
编辑:我按照说明放置括号并显示数据,但它以锯齿形图案上/下
有什么想法吗?对不起 - 这就是我现在所拥有的一切。数据通过PHP变量传递,因此不需要JSON