On Sun, Nov 22, 2015 at 3:26 AM Robert James Liguori <[email protected]>
wrote:

> What's the preferred interface with creating line charts with TG2?  Is it
> ToscaWidgets?
>

I'm using ToscaWidgets. Initially I was using the jqplot that Alessandro
mentioned but I found them a bit limiting and they didn't fit with the look
I was going for.

Alessandro is right, find the JS library that you think will do what you
want for starters. I'm using chart.js but there are plenty out there. The
next thing is, you got your data in python you know how you want to do your
chart in JS, how to get the data to the chart?

For that I use the Toscawidgets core. It's basically something that ensures
the relevant javascript and CSS are loaded and I have a html template with
the values plugged into it. I like having the python object because I have
a generic pie chart object, but then have a new class for status pie (think
of red,yellow,green status lights) which inherits the generic one but has
different colours.

 - Craig

-- 
Craig Small (@smallsees)   http://enc.com.au/       csmall at : enc.com.au
Debian GNU/Linux           http://www.debian.org/   csmall at : debian.org
GPG fingerprint:        5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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 https://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply via email to