0

I want to generate compound charts (e.g: Bar+line) from my database using python.

How can i do this ?

Thanks in Advance

1

4 Answers 4

3

You might want to look up Matplotlib.

Sign up to request clarification or add additional context in comments.

Comments

3

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:

http://matplotlib.sourceforge.net/gallery.html

Comments

1

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

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.