Calendar chart missing clearChart method

34 views
Skip to first unread message

Serdar Ozcan

unread,
Feb 15, 2016, 5:40:28 PM2/15/16
to Google Visualization API
Although the method is listed in the chart's documentation, chart object just does not have it. Is this a bug/wrong documentation or am I missing something? Is there another way to release the resources the chart uses safely when creating multiple charts on a page dynamically?

Daniel LaLiberte

unread,
Feb 17, 2016, 10:18:20 AM2/17/16
to Google Visualization API
Serdar,

Thanks for your report.  The clearChart() function is indeed missing from the calendar code.  We'll fix that at least for the next release, along with some other missing methods.  Perhaps we will update the latest (upcoming) release as well, if it turns out there is another reason.

I'm not sure there is much need to release resources with the Calendar chart.  If you find there are memory leaks, we'd like to know about it, but you might try to reuse existing Calendar chart instances rather than creating new ones when redrawing charts, for example.  



On Mon, Feb 15, 2016 at 5:40 PM, Serdar Ozcan <serdar.ozc...@gmail.com> wrote:
Although the method is listed in the chart's documentation, chart object just does not have it. Is this a bug/wrong documentation or am I missing something? Is there another way to release the resources the chart uses safely when creating multiple charts on a page dynamically?

--
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 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/824a2d4a-9e3c-4a12-a403-56bef805c0f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages