Page 1 of 1

How to constrain datetime zooming

Posted: Tue Jan 16, 2007 8:32 pm
by 9045841
I have a graph of daily harvest totals. So I have set the x-values to datetime and the display mask to "dd-mmm".

However, when the user zooms in, I end up with several ticks and labels on the x-axis for the same day.

As the data can be sparse, (i.e. daily totals can often be zero near the beginning and end of the season), these spurious ticks and labels could confuse the user.

Posted: Wed Jan 17, 2007 9:42 am
by yeray
Hi ChrisR,
I think you need to change your bottom axis increment like this:

Code: Select all

Chart1.Axes.Bottom.Increment := DateTimeStep[dtOneDay];