Data loading problems using echarts and datatables

When the

page is initialized, because the data has not been fully requested, but the chart has been loaded and the data binding is not up, how to solve this problem? The current solution is to set a timer to request every 1 second until the data is requested, and then load the chart, but this method will keep requesting when there is no data, the timer can not be controlled, and the server is prone to explosion. Is there any better way? ask the boss for guidance.


load the chart setOption after getting the data

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-1b3131e-e2c4.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-1b3131e-e2c4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?