spacing at the end of the TimeSeries-Line

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

spacing at the end of the TimeSeries-Line

Post by Joachim Schuler » Tue Nov 12, 2002 3:29 pm

Hi,

I am a user of jfreechart0.9.1.

I use an XYPlot for a TimeSeriesChart. Now my question.

How can I reduce the right spacing between the end of my TimeSeries-Line and the plot window.

The TimeSeries-Line at its end, should almost touch the plot window border.

Thanks lot

Regards,

Joachim

Dave Gilbert

Re: spacing at the end of the TimeSeries-Line

Post by Dave Gilbert » Tue Nov 12, 2002 4:00 pm

In the latest release of JFreeChart (0.9.4), you can control this with the setLowerMargin(...) and setUpperMargin(...) methods in the HorizontalDateAxis class. But I think in 0.9.1 the margins were hard-coded, so you will need to modify the source code directly.

Regards,

DG.

Joachim Schuler

Re: spacing at the end of the TimeSeries-Line

Post by Joachim Schuler » Thu Nov 14, 2002 5:12 pm

Thanks alot Dave,

I switsched to JFreeChart 0.9.4.

By using the method setUserMargin(...), all works fine.

Regards,

Joachim

Locked