JFreeChart Example explains about How to create chart using JFreeChart library
How To Create Pie Chart Using JFreeChart library?
Consider a situation where you need to show dynamic (ie; data is populated dynamically) charts such as Pie Chart, Line Chart, Bar Chart, Bubble Chart, Polar Chart, Wind Chart etc, in your application. In that case you can use JFreeChart
JFreeChart is a free and open source java chart library used for creating professional quality charts. JFreeChart is purely written in java language, we can very easily incorporate JFreeChart in our java standalone and web applications.
Referenece - > http://www.jfree.org/jfreechart/
Here I am showing an example about How to create a Pie Chart using JFreeChart.
You need to download
Following jar must be in classpath
We can create following professional quality charts by using jfreechart.
- Single valued Charts such as compass, speedometer, thermometer
- Line Chart
- Pie Chart
- Bar Chart
- Bubble Chart
- Wind Chart
- Polar Chart