Page 1 of 1

Axis maximum < axis minimum

Posted: Tue Feb 01, 2005 4:59 pm
by 8577008
Hello,

Is it possible to have an axis where the maximum is lower than the minimum?
I want to have an axis on a TSeriesPoint chart which represent a day that is not starting at midnight but at 03am. So the axis minimum will be 03:00 and the axis maximum will be 02:59.

Thank you.

Posted: Wed Feb 02, 2005 8:47 am
by Marjan
Hi.
maximum is lower than the minimum?
I'm afraid not. By definition axis maximum is always bigger than minimum (unless you invert the axis).
represent a day that is not starting at midnight but at 03am. So the axis minimum will be 03:00 and the axis maximum will be 02:59.
When you cross the "midnigt line" you're actually adding extra day to the date-time value. This also gives you the solution to problem: add extra day to values after midnight (or subtract day from values before midnight). Then the values and axis range will be drawn correctly.