Restricting zoom or Label-drawing if zoomed in very deep

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Whookie
Newbie
Newbie
Posts: 28
Joined: Fri Sep 24, 2004 4:00 am

Restricting zoom or Label-drawing if zoomed in very deep

Post by Whookie » Wed Dec 08, 2010 11:53 pm

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!

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

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

Post by Narcís » Fri Dec 10, 2010 11:37 am

Hi Whookie,

You can restrict that setting bottom axis increment to 1:

Code: Select all

  Chart1.Axes.Bottom.Increment:=1;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply