Visualization API for App Engine

49 views
Skip to first unread message

mdelvaux

unread,
May 30, 2008, 10:57:06 AM5/30/08
to Google Visualization API
If I want to use the Visualization API and App Engine together, what
are the possibilities:
- create the HTML code and embed the javascript code for the
visualization API?
- a more direct python based approach?

In particular, what would be the best way to create the Data Table via
App Engine then show it via a specific Visualization graph? I am
interested in the TImeSeries viewer.

biotech

unread,
May 30, 2008, 7:22:55 PM5/30/08
to Google Visualization API
Yes, I am looking for the same thing!!

Whats the best way to accomplish this?

Kyle Jensen

unread,
Jun 2, 2008, 8:45:26 AM6/2/08
to Google Visualization API

Hi -- Here's what we did...

1 - get the data you want in a python object
2 - Use simplejson http://simplejson.googlecode.com/ to
serialze that to javascript and write it to an http response w/ the
right "Content-type" header.
3 - Call the json from javascript (e.g. using jQuery's $.getJSON)
4 - call setValue a bunch -- viola

Hope that helps,
Kyle

On May 30, 7:57 am, mdelvaux <mdelv...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages