代码中的错误在哪里:/我太傻了,我找不到它。
// Draw chart
$(function(){
$.getJSON('data.php?name=<?php echo $name; ?>&mysqltablename=<?php echo $mysqltablename; ?>&datatabletyp=<?php echo $datatabletyp ?>',
function(data) {
chart = new Highcharts.Chart
({
chart: { renderTo: '<?php echo $tabname; ?>', zoomType: 'x', type: 'line', width:800 },
credits: { enabled: false },
plotOptions: { series: { marker : { enabled: false, states: { hover: { enabled: true } } } } },
xAxis: { type: 'datetime' },
title: { text:' ' },
yAxis: { title: { text: '' } },
legend: { enabled: false },
series: [{ name: 'john', data: data[] }],
});
Highcharts.setOptions({ global: { useUTC: false } });
Highcharts.numberFormat(this.y, 2, '.', ',');
});
});
控制台抛出此错误