Destroy the drilldown chart

238 views
Skip to first unread message

Vishal Joshi

unread,
Oct 6, 2015, 9:35:51 AM10/6/15
to Google Visualization API

I have implemented the drill down functionality of google charts. On Main chart when you click on a certain bar, it displays second chart. On Second chart, when you click it opens a third chart.


Now, when i have 3 charts on the screen and I go and click on different bar of the Main chart my second chart is getting updated with latest data, but in this case i want to completely remove the third chart which is being displayed as it has data from old flow.


Can someone please let me know the command that i can use to remove the chart? I don't want to play with div show/ hide. I want to completely remove the chart created.

Sergey Grabkovsky

unread,
Oct 6, 2015, 9:45:17 AM10/6/15
to Google Visualization API
Calling chart.clearChart() should properly clean up all of the chart elements. However, it would then be up to you to dispose of the container div in whatever way you see fit.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/4f938ba3-af34-472c-9e63-09af8ecdab83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages