How to draw discontinuous timeseries chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Naman Agarwal
Posts: 1
Joined: Sun Dec 20, 2020 12:26 am
antibot: No, of course not.

How to draw discontinuous timeseries chart

Post by Naman Agarwal » Sun Dec 20, 2020 12:36 am

I want to draw a discontinuous Time Series chart. By default straight lines are drawn for those time period for whom the value isn't mentioned to connect the graph, I want to disable this property.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: How to draw discontinuous timeseries chart

Post by david.gilbert » Wed Dec 23, 2020 6:02 am

If you add an observation to the time series with a null value, this will cause the line to be interrupted as you require it.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked