<meta> I am removing top-posting ... </meta>

On 9/14/13, asgallant <[email protected]> wrote:
> On Saturday, September 14, 2013 11:36:21 PM UTC-4, zzzhhh wrote:
>>
>> Now I have a python program that generates data which I want to display
>> using google chart. I studied the page
>> https://google-developers.appspot.com/chart/interactive/docs/php_example,
>> but
>> it uses php running on the web server to return the dynamically generated
>>
>> data. I don't know php. How to use python then (the python code is running
>>
>> on the web server, not the client side)? Is there any examples? Thank
>> you.
>>
>
> I'm not a python developer, so I can't help you with that, but you might
> want to look into the Python Datasource
> Library<https://developers.google.com/chart/interactive/docs/dev/gviz_api_lib>,
>
> which is designed to handle database queries and return data in the
> appropriate format.
>

That's definitely the way to go . That's one of the components used to
render TracGViz charts e.g. [1]_ . However it's important to notice
that you will not get GViz query capabilities , though it's possible
to find ways to work around this limitation. One is to supply URL
parameters for data source filters (which is very limited yet simple).
Otherwise you could write your own engine from scratch . In the later
case see [2]_ [3]_ [4]_ to know more about the solution distributed in
TracGViz plugin .

.. [1] http://dataviz.blood-hound.net/wiki/Demos/Github

.. [2] 
http://dataviz.blood-hound.net/browser/tracgviz/trac-dev/gviz/tracgviz/gvizql.py

.. [3] 
http://dataviz.blood-hound.net/browser/tracgviz/trac-dev/gviz/tracgviz/grammar.py

.. [4] 
http://dataviz.blood-hound.net/browser/tracgviz/trac-dev/gviz/tracgviz/util/parsing.py

-- 
Regards,

Olemis - @olemislc

Apache™ Bloodhound contributor
http://issues.apache.org/bloodhound
http://blood-hound.net

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:
Apache™ Bloodhound 0.7 listo para descarga -
http://goo.gl/fb/OwzmM

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to