I am a beginner in JSP, I am just wondering will it be possible to create a pie chart in jsp without installing new classes and stuff? If yes, how can I do it? Or else will it be possible if I retreieve the data from mysql and display it into a text box and create the pie chart? Thank you very much.

10 Years
Discussion Span
Last Post by lookof2day

yes, but you don't want to.
It's not what JSP is intended for, and why reinvent the wheel?

And no, we're not going to help you do things that are a Really Bad Idea (tm)(p)(c)(r)


There is a page http://www.jfree.org/jfreechart/. What you can do to present charts i JSP is to create chart in code then save the chart as image. then present the image on the JSP page. This chart is not dynamic but it will hopefully help solving your problem.


AFAIK, JFreechart can also be used to create dynamic on the fly charts. Read the documentation and the tutorials floating around the web and it shouldn't be that difficult.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.