Right. To put it in other words, the Google Visualization API is a
javascript library that runs in the browser. As such, all it can do is
issue HTTP requests. If your database has some HTTP interface, then you can
write javascript code that queries it. Since there's no standard database
HTTP interface which many databases support (or at least not one I'm aware
of), the library can't provide methods for such HTTP queries.

Bottom line, you'll have to run some server-side code to query the
database. It can be done in any way you like it (such as PHP scripting),
and that is the first link I mentioned, or in a server-side Java library we
wrote and provided, and that's the second link.

On Tue, Jan 10, 2012 at 5:46 PM, asgallant <[email protected]>wrote:

> It cannot read directly from the database - you have to use PHP or other
> server-side scripting to pull the data out of the database and put it in a
> format the API can understand.  The easiest way using PHP is to query your
> database and output the data directly inside the javascript function (in
> place of the hard-coded data).
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-visualization-api/-/3k_CWKNeIY0J.
>
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-visualization-api?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to