Using PHP to echo entire chart

11 views
Skip to first unread message

Keric Miles

unread,
Sep 8, 2011, 7:57:51 PM9/8/11
to Google Visualization API
I'm working on converting some PHP I wrote from using a JQuery based
chart library to Google charts. The library I was using that used the
<table> tag to create charts from at run time and I just used PHP to
echo out the tables and it worked just fine. I am using the same
method with Google charts but I'm echoing JavaScript instead. My
initial tests worked fine but I want to know if there are going to be
any problems with this method later on. I'm not too familiar with
JavaScript and am not entirely sure on how the whole DOM thing works
as I'm a programmer not a web developer.

asgallant

unread,
Sep 9, 2011, 9:18:49 AM9/9/11
to google-visua...@googlegroups.com
PHP runs entirely on the server side, javascript runs entirely on the client side.  As long as your PHP produces valid javascript, you should not have any problems.

Keric Miles

unread,
Sep 9, 2011, 10:58:57 AM9/9/11
to Google Visualization API
That's what I thought thanks.
Reply all
Reply to author
Forward
0 new messages