Multiple Charts on a Single Webpage

1,387 views
Skip to first unread message

Alex Weinstein

unread,
Nov 28, 2015, 8:28:39 PM11/28/15
to Google Visualization API
It looks like multiple folks are having issues with getting more than one Google Chart to appear on a given page. This seems to do with a timing issue - using setTimeout or drawing charts one after another in event handlers fixed the problem. 

Consistent repro: https://jsfiddle.net/3qdxd2m9/1/

Answers on this page provide viable workarounds, but this is just not what I'd expect from a professional API. Google, are you planning to fix this? 

Daniel LaLiberte

unread,
Nov 30, 2015, 8:53:47 AM11/30/15
to Google Visualization API
Alex,

Thanks for your concern.  This should already be fixed in the latest releases (41, 42, and 43), available with the frozen version loader:   https://developers.google.com/chart/interactive/docs/library_loading_enhancements#frozen-versions

--
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/3683e81c-afa8-4f75-8f19-38dccbd2b716%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA

Daniel LaLiberte

unread,
Nov 30, 2015, 8:58:26 AM11/30/15
to Google Visualization API
I should have posted this with my reply.  Here is your jsfiddle with the fix: https://jsfiddle.net/3qdxd2m9/2/

Alex Weinstein

unread,
Nov 30, 2015, 6:41:28 PM11/30/15
to Google Visualization API
Very helpful, thank you very much. Daniel, I posted a link to your reply to stack overflow; you might also want to consider including this info onto the Google Charts documentation page, as folks using Google Charts in anything but toy / test environments will undoubtedly hit this. 


On Monday, November 30, 2015 at 5:58:26 AM UTC-8, Daniel LaLiberte wrote:
I should have posted this with my reply.  Here is your jsfiddle with the fix: https://jsfiddle.net/3qdxd2m9/2/
On Mon, Nov 30, 2015 at 8:53 AM, Daniel LaLiberte <dlali...@google.com> wrote:
Alex,

Thanks for your concern.  This should already be fixed in the latest releases (41, 42, and 43), available with the frozen version loader:   https://developers.google.com/chart/interactive/docs/library_loading_enhancements#frozen-versions
On Sat, Nov 28, 2015 at 8:28 PM, Alex Weinstein <alex...@gmail.com> wrote:
It looks like multiple folks are having issues with getting more than one Google Chart to appear on a given page. This seems to do with a timing issue - using setTimeout or drawing charts one after another in event handlers fixed the problem. 

Consistent repro: https://jsfiddle.net/3qdxd2m9/1/

Answers on this page provide viable workarounds, but this is just not what I'd expect from a professional API. Google, are you planning to fix this? 

--
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.



--
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA



--
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA

Daniel LaLiberte

unread,
Dec 1, 2015, 8:07:08 AM12/1/15
to Google Visualization API
We will be transitioning all of the Google Charts documentation to use the gstatic loader, and you should start seeing this very soon.

On Mon, Nov 30, 2015 at 6:41 PM, Alex Weinstein <alex...@gmail.com> wrote:
Very helpful, thank you very much. Daniel, I posted a link to your reply to stack overflow; you might also want to consider including this info onto the Google Charts documentation page, as folks using Google Charts in anything but toy / test environments will undoubtedly hit this. 

On Monday, November 30, 2015 at 5:58:26 AM UTC-8, Daniel LaLiberte wrote:
I should have posted this with my reply.  Here is your jsfiddle with the fix: https://jsfiddle.net/3qdxd2m9/2/
On Mon, Nov 30, 2015 at 8:53 AM, Daniel LaLiberte <dlali...@google.com> wrote:
Alex,

Thanks for your concern.  This should already be fixed in the latest releases (41, 42, and 43), available with the frozen version loader:   https://developers.google.com/chart/interactive/docs/library_loading_enhancements#frozen-versions
On Sat, Nov 28, 2015 at 8:28 PM, Alex Weinstein <alex...@gmail.com> wrote:
It looks like multiple folks are having issues with getting more than one Google Chart to appear on a given page. This seems to do with a timing issue - using setTimeout or drawing charts one after another in event handlers fixed the problem. 

Consistent repro: https://jsfiddle.net/3qdxd2m9/1/

Answers on this page provide viable workarounds, but this is just not what I'd expect from a professional API. Google, are you planning to fix this? 

--
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.
--
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA



--
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA

--
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.

For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA
Reply all
Reply to author
Forward
0 new messages