Axis maximum < axis minimum

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
JMBiollaz
Newbie
Newbie
Posts: 6
Joined: Fri Nov 15, 2002 12:00 am
Contact:

Axis maximum < axis minimum

Post by JMBiollaz » Tue Feb 01, 2005 4:59 pm

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.

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Wed Feb 02, 2005 8:47 am

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.
Marjan Slatinek,
http://www.steema.com

Post Reply