Hole value in timeline/line chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
mskjeret
Posts: 27
Joined: Sun May 23, 2004 8:58 am

Hole value in timeline/line chart

Post by mskjeret » Wed Oct 06, 2004 7:57 am

Hi

I have read through the developer guide, and did a quick search in the forum but nothing turned up.

I am supposed to create a line chart (timeline), but we dont want to use dates. This is easy and seems to work just fine.

But I am in the situation that I have data from e.g
1990 - 93 and from 97-2000 for a serie.

I am not comfortable, and neither is it statistical/methodically correct, to draw a line from 93 to 97.
Other series in the same graph might have data between 93 and 97.

Is there a way to set a hole value? Or at least create a gap?

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

Post by david.gilbert » Wed Oct 06, 2004 8:15 am

Add an item (1994, null) to your dataset. The null value will cause JFreeChart to break the line.
David Gilbert
JFreeChart Project Leader

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

Locked