SimpleDao

先销毁,再更新

  1. var chart = echarts.getInstanceByDom(document.getElementById(chart_id));
  2. echarts.dispose(chart);
  3. chart = echarts.init(document.getElementById(chart_id));
  4. chart.setOption(option);