Chart goes blank on 2nd load of .tpl file

30 views
Skip to first unread message

Enes Eryigit

unread,
Apr 12, 2016, 7:39:18 AM4/12/16
to Google Visualization API
Im trying to implement google chart into a vtiger widget i made. When i acces a entity all the pages of that entity are loaded. The problem is that google.chart.load is done too. So when i click for the page with the chart the script stops at google.chart.load . If any one would know a way to unload google charts or a way redraw when i change page please do  tell me.


Daniel LaLiberte

unread,
Apr 12, 2016, 12:43:12 PM4/12/16
to Google Visualization API
Enes,

Either you have to reload the entire page, or you have to arrange that google.charts.load is only called one time once the page is loaded.  This should usually be possible.  Can you point at an example where you are having a problem?

On Tue, Apr 12, 2016 at 7:39 AM, Enes Eryigit <enes...@msn.com> wrote:
Im trying to implement google chart into a vtiger widget i made. When i acces a entity all the pages of that entity are loaded. The problem is that google.chart.load is done too. So when i click for the page with the chart the script stops at google.chart.load . If any one would know a way to unload google charts or a way redraw when i change page please do  tell me.


--
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/c0408b17-67fc-43e4-9b79-52f134082f64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages