report errors
unhandled error during execution of watcher callback
analysis
When drawing data with the Echorts icon, an error is reported: unhandled error during execution of watcher callback. The reason for the prompt is that the Echorts chart is rendered before the data is obtained in the current year, which results in the chart cannot being displayed and an error being reported
Solution:
Before data rendering, make a non-empty judgment
for example:
if(value){
Start rendering data
}
or
if(value !== undefined){
Start rendering data
}