Many thanks- this is exactly what I need.

Julien Tayon (julbox) wrote:
> 
> 2011/9/15 kkle <[email protected]>:
>>
>> Hi,
>>
>> I would like to use the interactive google charts in a Turbogears
>> project.
>> I've seen examples of code for using static images generated by google
>> charts (http://turbogears.org/1.0/docs/Widgets/Recipes.html) but not
>> interactive charts.
>> What approach would you recommend for using interactive google charts in
>> a
>> Turbogears project?
> 
> Using a  python toolkit library
> 
> http://code.google.com/intl/fr/apis/chart/interactive/docs/dev/gviz_api_lib.html#howtouse
> If you have composite views or single object views your strategy will
> differ.
> 
> In one case you can use automated sqlalchemy to google dataschema
> transcriptor and have a converter method.
> On the other hand, you'll have to construct dataschema and datatable each
> time.
> 
> In all case you'll want to all the hardwork to be achieved  with just
> a call to an object in your template as
> ${ object.chart_me( *mandatory , **options) } or ${chart(object)}
> 
> Try to consider you may switch to other graphing strategies (jquery
> flow, or matplotlib) and try to think of the problem in generic
> graphic problematics layers
> 1) describing datas (so that you can write legends) (--> constructor)
> 2) transforming your data (orm to dataset)
> 3) plot options (size, type, width, ***)
> 4) event handler and or callbacks.
> 
> My 2 cents,
> Hf, gl
> Jul
> 
> -- 
> You received this message because you are subscribed to the Google Groups
> "TurboGears" 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/turbogears?hl=en.
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Best-approach-for-using-interactive-google-charts-with-TG-tp32472912p32490649.html
Sent from the Turbogears General mailing list archive at Nabble.com.

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en.

Reply via email to