I want to generate compound charts (e.g: Bar+line) from my database using python.
How can i do this ?
Thanks in Advance
I want to generate compound charts (e.g: Bar+line) from my database using python.
How can i do this ?
Thanks in Advance
This is extremely simple to do using matplotlib using the plot
and bar
methods:
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.plot
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.bar
The matplotlib gallery is usually a good place to start for examples of working code:
Pretty easy to do with pygooglechart -
You can basically follow the bar chart examples that ship with the software and then use the add_data_line method to make the lines on top of the bar chart
If you are rendering to a web browser, you might also consider jQuery and Flot using python-flot-utils. If you want static images, the other two answers are correct. Matplotlib is excellent.