Time as Domain with portion cut out

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
tobermory
Posts: 10
Joined: Thu Jul 06, 2017 8:11 pm
antibot: No, of course not.

Time as Domain with portion cut out

Post by tobermory » Tue Feb 06, 2018 1:59 am

I don't know how best to name the Subject of my issue, but hopefully the explanation will be easier to follow.

Say I have some time-related data, to be plotted on a XY plot. Some quantity Q varies from say zero to one (the range) from time units 0-100, where the unit of time might be seconds. Time is then the domain of the data.

There is then a long time gap where there is 'no data', say from time 100 to time 900.

Finally, the same quantity Q again has data from time 900 to time 1000.

If i plot this on a 'normal' XY plot, obviously a large part of the plot, 80% in this case; will be 'empty' due to there being no data from 100 to 900 along the domain axis.

Is there any way in JFreeChart to 'cut out' a section of the domain so that the 'interesting data' takes up most of the available pixel space? I'm sure I had seen such an example in the demos jar but now of course I can't find it!

Any help appreciated

Stuart

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: Time as Domain with portion cut out

Post by John Matthews » Tue Feb 06, 2018 6:42 pm

You may be looking for a SegmentedTimeline.

Locked