JFreeChart- Gantt Chart

A Gantt chart is a kind of bar chart which is commonly used for planning and scheduling project tasks and events.

The following images show some of the demo versions of gantt chart incorporated in JFreeChart library:

Gantt Chart Demo 1:

JFreeChart Gantt Chart Demo 1

Gantt Chart Demo 2:

JFreeChart Gantt Chart Demo 2

Gantt chart example:

Let us consider the following sample data for a Gantt chart.

Software Development PhasesEstimated DateActual date
Requirement2017-07-032017-07-072017-07-032017-07-05
Design2017-07-102017-07-142017-07-062017-07-17
Coding2017-07-172017-07-212017-07-182017-07-27
Testing2017-07-242017-07-282017-07-282017-08-01
Deployment2017-07-312017-08-042017-08-022017-08-04

The following codes create a Gantt chart from the above sample data:

GanttChartExample.java

Output:

JFreeChart Gantt Chart example
Next Topic#




Latest Courses