Noob Question - sometimes Chrome displays my Google Chart, sometimes it doesn't.

17 views
Skip to first unread message

GtB

unread,
Jun 2, 2020, 11:09:05 AM6/2/20
to Google Visualization API
Hi,

Apologies if this is a stupid question.

I've just started messing around with Google Charts, and worked through a few examples, which all worked.

Then I created a multi-line chart - three sets of points, with 24 values on each (a value for every hour of the past 24 hours)

The chart displays fine in IE 11, every time.

However, using the Chrome browser, sometimes it displays the chart, and sometimes just a blank page.

I found if I restart Chrome holding down Ctrl to clear the cache, then it sometimes works.

If I restart Chrome holding down Ctrl, then navigate to a simple example chart, then navigate to my more complex multi-line chart, both always work,

So my guess is this is some sort of timing issue for fetching https://www.gstatic.com/charts/loader.js ?

Is there something I can add to my page to prevent Chrome trying to render the graph before it's ready?

Or am I barking up the wrong tree here?

Any suggestions would be much appreciated!

Thanks

Alan


Daniel LaLiberte

unread,
Jun 2, 2020, 11:55:54 AM6/2/20
to Google Visualization API
Hi Alan,

Are you calling google.charts.setOnLoadCallback, or using the 'callback' setting in google.charts.load?  See the general instructions on how to load the library at:   https://developers.google.com/chart/interactive/docs/basic_load_libs#basic-library-loading

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/3068c665-ca29-431e-a8c8-c14a3c52f79e%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages