JFreeChart Example

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.

Note

1) If you need pie chart example, You can follow Create Pie Chart Using JFreeChart

2) If you need line chart example, You can follow Create Line Chart Using JFreeChart

3) If you need bar chart example, You can follow Create Bar Chart Using JFreeChart

4) If you need polar chart example, You can follow Create Polar Chart Using JFreeChart

5) If you need bubble chart example, You can follow Create Bubble Chart Using JFreeChart

6) If you need wind chart example, You can follow Create Wind Chart Using JFreeChart


Required Libraries

You need to download

  1. JFreeChart

Following jar must be in classpath

  1. jfreechart-1.0.13.jar
  2. jcommon-1.0.16.jar

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

Project Structure

Create Pie Chart Using JFreeChart


1 2 Next





5 Responses to "JFreeChart Example"
  1. Sam_brutus 2011-12-10 07:15:14.0
  1. admin 2011-12-11 07:15:14.0
  1. CG 2011-12-12 07:15:14.0
  1. Abhishek Singh 2011-12-13 07:15:14.0
  1. admin 2011-12-14 07:15:14.0

Your email address will not be published. Required fields are marked *