Echarts column Graph Data Overlay __echarts3-0 with asynchronous loading

Source: Internet
Author: User

The question ... I've been bothering you all afternoon ...

There was a problem with the data being asynchronously loaded.
Background to the foreground of the data is normal, but the Echarts display data a group, and this set of data is the previous step of the operation.

You can see that only 2017-9 and 2017-10 of the data are queried, but a set of data is displayed more than one.

I thought Echarts's design was that every initialization of the data was reloaded, but it was not, that it didn't quite understand why it was designed.
There is a description in the official document.

As you can see, each execution of the data is preserved.

Continue to look at the document and find a clear function, OK, the problem can be solved
Just ok~ every time you initialize it in clear.

var MyChart = echarts.init (document.getElementById (' main '));
Mychart.clear ();

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.