Google Chart - GEO chart and Core Chart is not working on the Same Page.

114 views
Skip to first unread message

Ganesh Moorthi

unread,
Aug 19, 2016, 6:45:06 AM8/19/16
to Google Visualization API
HI,

   Could you please any one help me,


In google chart , GEO chart and Core chart is not working on the same page.. This is multiple charts display in same page...

Please copy the usamap code from google chart and 3d pie chart code. and put it in same page..

Then run it.. 

Please check your browser..

Help me...

Thanks

Daniel LaLiberte

unread,
Aug 19, 2016, 12:03:54 PM8/19/16
to Google Visualization API
Ganesh,

Here is an example using GeoChart and PieChart on the same page: https://jsfiddle.net/dlaliberte/v9pukgsq/
Note that this example depends on using the 'upcoming' version (which is v45).   With the 'current' version (v44), it still needs both the jsapi and gstatic loaders for GeoChart.

--
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.
To post to this group, send email to google-visualization-api@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/cb4d1210-0756-407a-aa67-bdce91697cb3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

apd.bus...@gmail.com

unread,
Aug 23, 2016, 10:56:07 AM8/23/16
to Google Visualization API
Hi,

I have a similar issue with several chart types not loading together on the same page, but my coding is quite alot different from your example (and any others i see on here).

You will have to excuse my noviceness but i have no coding background, i was just looking for a way to display our analytics data on our internal sharepoint server for all users to see without the need to log on and the attached code allows me to acomplish this (by pasting this code into an embedded snippet). Bus as you can see the page and users chart no longer appear.

Any and all help appreciated.

Mark


Super Proxy Realtime - iCIS.html

Daniel LaLiberte

unread,
Aug 23, 2016, 11:13:18 AM8/23/16
to Google Visualization API
Hi Mark,

It appears I broke the dynamic loading of packages during the last release (July 1) for the jsapi loaded library.  Until that is fixed, you should either explicitly load the packages for 'table' and 'gauge', or better, I would recommend you switch to using the new gstatic loader and use the 'upcoming' version which *does* now support dynamic package loading.  See the instructions at:  https://developers.google.com/chart/interactive/docs/basic_load_libs#update-library-loader-code 

So your code will look something like this:

(remove your loading of jsapi and call of google.setOnLoadCallback())


apd.bus...@gmail.com

unread,
Aug 26, 2016, 6:05:26 AM8/26/16
to Google Visualization API
Hi Daniel,

Thanks for the quick response, works like a charm!

Many thanks :)
Reply all
Reply to author
Forward
0 new messages