time series chart alignment workaround

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

time series chart alignment workaround

Post by Jason » Mon Jul 29, 2002 7:33 pm

What is the workaround that has been added to fix the alignment between time series charts and the date axis?

David Gilbert

Re: time series chart alignment workaround

Post by David Gilbert » Mon Jul 29, 2002 10:55 pm

There is now a 'position' attribute in the TimeSeriesCollection class. This can be set to START (the default now), MIDDLE (the previous behaviour), or END, and controls the millisecond that is returned by the getXValue(...) method.

This was the easiest way to fix the alignment. In the future I plan to modify the date axis classes to have similar controls over the positioning of ticks...

Regards,

DG.

Locked