[Google Charts] Google charts do not like loading after the initial page load

[Google Charts] Google charts do not like loading after the initial page load

  
Forge Component
(9)
Published on 2014-02-11 by André Vieira
9 votes
Published on 2014-02-11 by André Vieira
I've encountered a problem with the Google Charts component when it comes to tabs, specifically tabs that load on click.

Tabs that load with the rest of the page will show the google charts graphs they contain, however, if you change them to load after the rest of the page, like using SilkUi's tabs "loadonclick" feature, they fail to work.

I also have this problem with the RichWidgets tabs when i click to another tab that loads content later, then come back to a previously working GoogleCharts tab my chart is no longer displayed. (Meaning this is not an issue unique to or caused by SilkUI.)


To recreate:
1) Have a working Google Chart graph contained on it's own inside a web block.
Put it inside a SilkUI tab other than #1, with no ActiveTab set.

2) Leave load on click set to False, verify that it does indeed work.
3) Change load on click to True, click your tab, let it load, and verify that graphs do NOT load on click...



Does anyone have a workaround or solution that would allow us to show these graphs ONLY when necessary, speeding up load time and decreasing network load the rest of the time?


Thanks,
Braxton Bragg