--
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-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/40b0dfb1-669a-45d1-a983-09dd4748938e%40googlegroups.com.
Hi Steve,I tried adding clearChart() calls to one of the JSFiddles, and it seems to work fine. I call it just before redrawing, when you push any of the format buttons: https://jsfiddle.net/1eu7rkvr/1/Could you show how you were doing it that caused errors?
On Fri, Mar 16, 2018 at 8:01 AM, Steve Davies <ste...@ipcortex.co.uk> wrote:Might it be possible to work around this by calling clearChart() and then destroy any left-over DOM elements from the report?Just wondering how valid that might prove to be or whether this will cause any obvious issues?Thanks,Steve
On Thursday, 15 March 2018 12:27:44 UTC, Steve Davies wrote:Hi,I'm having trouble with clearChart() - It works fine on my "core" Pie, Bar and Column charts, but on the Material Bar chart, it seems to do some sort of broken half-clear, and generally errors shortly afterwards.It is easily demonstrated by loading the JSFiddle provided on the Google dev docs page, and using it to call clearChart() manually on the console. To find the JSFiddle, look for the link in the docs here:Thanks for any suggestions, pointers or fixes :)Regards,Steve--
--
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-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/6d520d88-9f11-48e0-bbab-0a99ee0c33ff%40googlegroups.com.
Yes, clearChart() doesn't actually delete the display of a previously rendered chart, although perhaps it should since you can no longer interact with it, or programmatically do anything with the chart object except to draw another rendering of the chart.
[snip]
--
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-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/bb8cd301-4af5-4a40-a9bc-e8bc1ae20dc4%40googlegroups.com.