add dot(shape) to a timeseries

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
snebben

add dot(shape) to a timeseries

Post by snebben » Thu Aug 29, 2002 9:36 pm

Is there a way to add a dot(shape) to a timeseriescollection dataset that is displayed as a line.

For instance, I have a line drawn for values over time but I would really like to add a dot on the chart line where the minimum and maximum values occur. Can I do this without creating a whole new series?

Thanks!
Stacey

David Gilbert

Re: add dot(shape) to a timeseries

Post by David Gilbert » Fri Aug 30, 2002 8:13 am

You could change the renderer to display lines *and* shapes, but that will display shapes for every point on your series. It sounds like you would like only a couple of shapes, in which case you would need to create a new series and use an OverlaidXYPlot.

Alternatively, I have done a little bit of work on text annotations for plots, which I plan to extend to have support for graphics (arrows, lines etc) as well. When this is done, you might be able to add a couple of shapes to your plot using this mechanism.

Regards,

DG.

S

Re: add dot(shape) to a timeseries

Post by S » Fri Aug 30, 2002 3:03 pm

Thanks David,

That's kind of what I figured. Thanks for the reassurance and the reply though. I look forward to all the new support you are putting into Jfreechart. It really is a wonderful tool.

Thanks!
Stacey

S

Re: add dot(shape) to a timeseries

Post by S » Fri Aug 30, 2002 5:03 pm

One other question I have is...if I add an extra series for the min and max series, is there a way to not include them in the legend? I really don't want to display them twice since they are just 'fake' series.

TIA!
Stacey

Locked