Javatpoint Logo
Javatpoint Logo

JFreeChart- Time Series Chart

A Time Series chart represents a sequence of numerical data, which varies at equal intervals of time.

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

Time Series Chart Demo 1:

JFreeChart Time Series Chart Demo 1

Time Series Chart Demo 2:

JFreeChart Time Series Chart Demo 2

Time Series Chart Demo 3:

JFreeChart Time Series Chart Demo 3

Time Series Chart Demo 4:

JFreeChart Time Series Chart Demo 4

Time Series Chart Demo 5:

JFreeChart Time Series Chart Demo 5

Time Series chart example:

Let us consider the following sample data for a Time Series chart.

Date Series 1 Series 2
2017-01-01 50 40
2017-01-02 40 35
2017-01-03 45 26
2017-01-04 30 45
2017-01-05 50 40
2017-01-06 45 35
2017-01-07 60 45
2017-01-08 45 48
2017-01-09 55 31
2017-01-10 48 32
2017-01-11 60 21
2017-01-12 45 35
2017-01-13 65 10
2017-01-14 45 25
2017-01-15 55 15

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

TimeSeriesChartExample.java

Output:

JFreeChart Time Series Chart example




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


B.Tech / MCA