Echarts dynamic diagram keeps reporting errors. I don't know why.

clipboard.png

clipboard.png

clipboard.png

clipboard.png

clipboard.png


your option is not used at all, that is, you have never set xAxis and yAxis information to line_chart . Every time you setOption , you only set series information, so you will report an error.

so, you need to set the configuration item of option once at first:

var option = {
    ....
    series: [{
        data: data.slice(data.length - 7), // 
        type: 'line'
    }]
}
line_chart.setOption(option)
setInterval(function () {
    ...
}, 500);
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea93b7-1f39.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea93b7-1f39.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?