When using echarts, the data changes, but the chart is not re-rendered.

When using echarts, the nodes and data are normal, but the chart is not re-rendered.
Please add image description
Because the chart is not updated by default, there is no need to re-render. This can be solved by re-rendering. Just
add a codemyChart.clear();

      let myChart = echarts.init( document.getElementById("myId") );
      myChart.clear();
      let bar = orderBar();
      myChart.setOption(bar);

Finally look at the renderings
Please add image description

Guess you like

Origin blog.csdn.net/Jet_Lover/article/details/127054776