Vertical lines?

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

Vertical lines?

Post by Craig Tataryn » Thu May 09, 2002 5:05 am

I would like to display a vertical line extending upward from one of the dates on my TimeSeries chart. How would I go about doing that?

Thanks,

Craig.

David Gilbert

Re: Vertical lines?

Post by David Gilbert » Thu May 09, 2002 4:11 pm

Hi Craig,

In XYPlot, there is a method addVerticalLine(...) that should do what you want. I recall fixing a drawing bug recently for either the vertical or horizontal lines...you might want to browse the latest XYPlot code (in CVS on SourceForge) to see what was changed.

Regards,

DG.

Craig Tataryn

Re: Vertical lines?

Post by Craig Tataryn » Thu May 16, 2002 7:08 am

Just curious, prior to your change, did addVerticalLine work at all? I can't seem to get it to work, I'm not really to sure what the number is that I am passing it. I have a TimeSeries chart where I want to draw a vertical line extending up from a given date. Using addVerticalLine of XYPlot, how would I do this?

Thanks,

Craig.

Locked