https://developers.google.com/chart/interactive/docs/php_example

47 views
Skip to first unread message

Bob Zinc

unread,
Oct 29, 2012, 10:05:14 AM10/29/12
to google-visua...@googlegroups.com
This pie example, does anybody know even though I copy exactly the same code, the pie is not generated. I would like to use json formatted data to instantiate theDataTable constructor.

https://developers.google.com/chart/interactive/docs/php_example

asgallant

unread,
Oct 29, 2012, 11:06:11 AM10/29/12
to google-visua...@googlegroups.com
Chances are that you don't have jQuery where that script is looking for it.  Change this line:

<script type="text/javascript" src="jquery-1.6.2.min.js"></script>

to this:

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>

Note that if you are running the file locally instead of on a webserver, you will need to add "http:" to the start of the source.

Bob Zinc

unread,
Oct 29, 2012, 11:49:40 AM10/29/12
to google-visua...@googlegroups.com
Thanks a lot. I made a silly move

asgallant

unread,
Oct 29, 2012, 12:11:51 PM10/29/12
to google-visua...@googlegroups.com
Not your fault, pretty much everyone who tries that example has the exact same problem.
Reply all
Reply to author
Forward
0 new messages