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