jquery ui tab with google charts

623 views
Skip to first unread message

thiscodethis

unread,
Aug 14, 2013, 6:58:18 PM8/14/13
to google-visua...@googlegroups.com
I tried to implement google charts inside a jquery ui tab like this person:   http://stackoverflow.com/questions/3363875/loading-google-visualizations-via-ajax-in-jqueryui-tabs

I have an index file and a separate file with just the google chart script with not html, body, header tags.

The chart renders fine when the index file is initially loaded.  When I switched to a different tab and then switch back the chart goes away and doesn't render again.  Is there a way to call the external google chart file again or have it stay in memory?

asgallant

unread,
Aug 15, 2013, 12:36:19 AM8/15/13
to google-visua...@googlegroups.com
Can you post the files you are using so I can test them?

thiscodethis

unread,
Aug 16, 2013, 1:09:18 PM8/16/13
to google-visua...@googlegroups.com
Actually, I got it to work.  What I did wrong was include the function part (ie - "function drawChart() {" ) in the 2nd script file being called into the separate jquery tabs.  Also, the divs in each script file have to be different.
Reply all
Reply to author
Forward
0 new messages