A bar chart is a chart that represents the grouped data with rectangles. The height or length of the bar is propositional to the value that represents the bar.
The following images show some of the demo versions of bar chart incorporated in JFreeChart library:
Bar Chart Demo 1:
Bar Chart Demo 2:
Bar Chart Demo 3:
Bar Chart Demo 4:
Bar Chart example
Let us consider a sample input data for our bar chart example.
The following codes create a bar chart from the above sample data: