You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/04/13 21:25:40 UTC

[GitHub] stevelacerda7 opened a new issue #8157: how do I clear a chart? Basically I need to re-initialize it.

stevelacerda7 opened a new issue #8157: how do I clear a chart? Basically I need to re-initialize it.
URL: https://github.com/apache/incubator-echarts/issues/8157
 
 
   I have several charts on a single page, and each chart changes based on what the user selects. I have an ajax call that retrieves the data, so the data varies and is dynamic based on users selection. I'm having a problem clearing out old data. Basically, I just want after each selection to re-initialize the chart and start from scratch. How can I do that?
   
   It seems that now, when the user deselects a metric, the chart retains that old information. I've tried setting data to null, or empty array, but nothing seems to work. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org