Page 1 of 1

Restricting zoom or Label-drawing if zoomed in very deep

Posted: Wed Dec 08, 2010 11:53 pm
by 9339286
Hi!
I'm using TChart 7.12 with D2007 and have set Bottom axis Label format to 0 (I do not need fractionals). If I zoom in everything works well until a certain zoom level is reached (zooming in further and further). At some point (if the distance between two consecutive points doesn't fit in the current view?) the grid "jumps" to multible labels each one with the same value (so one moment you see a "1" on the left-side and a "2" on the right-side of the chart and next moment the complete axis is filled with "2"'s).

I would like to either restrict zooming to go beyond that point or prevent the chart from drawing the same lable multiple times!

Re: Restricting zoom or Label-drawing if zoomed in very deep

Posted: Fri Dec 10, 2010 11:37 am
by narcis
Hi Whookie,

You can restrict that setting bottom axis increment to 1:

Code: Select all

  Chart1.Axes.Bottom.Increment:=1;