Baseline on an XYPlot.

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

Baseline on an XYPlot.

Post by Martin Smith » Sun May 12, 2002 4:52 am

I want to draw a baseline on an XYPlot ( I am building charts that show return data and would therefore want to be able to readily see the zero line). Is this possible with the current XYPlot?

Martin Smith

Re: Baseline on an XYPlot.

Post by Martin Smith » Mon May 13, 2002 3:34 am

I found the method addHorizontalLine and tried using that this works to an extent. It appears that the line that is drawn is too short by about the width of the Yaxis area.

David Gilbert

Re: Baseline on an XYPlot.

Post by David Gilbert » Mon May 13, 2002 5:41 am

This is a bug that has been fixed for inclusion in the next release...take a look at the changes in the draw(...) method (I think) of XYPlot, in the CVS repository on SourceForge (you can view the source code on the web without having to check out all the code).

Regards,

DG.

Locked