JFreeChart is a free and pure java chart library for
creating professional quality charts.
This requires the libraries
to be in classpath.
The following example shows creating a simple pie chart from JDBCPieDataset.
It uses H2 database to fetch the data required for rendering the pie chart.
The BUG_STAT table is shown below,