search

Home  >  Q&A  >  body text

javascript - Echarts simulated migration will leave traces of lines after resizing?

Echarts simulated migration will leave traces of lines after resize, as shown in the figure

It will disappear after dragging and zooming with the mouse. Is there any way to make it disappear directly after resizing?

淡淡烟草味淡淡烟草味2766 days ago1012

reply all(1)I'll reply

  • 漂亮男人

    漂亮男人2017-06-12 09:31:26

    Echarts simulated migration will not leave trace afterimage after resizing? Did your data change and you setOption again?
    If you setOption again, you can clear() before setOption; such as:

                    mapEcharts.clear();
                    mapEcharts.setOption($.initMap({
                        maxNum:0,
                        minNum:9,
                        dataArr:dataArr,
                        lineArr:lineArr,
                        potionArr:potionArr
                    }));

    reply
    0
  • Cancelreply