Number of labels in T8.02

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
mal
Newbie
Newbie
Posts: 2
Joined: Wed Oct 03, 2007 12:00 am

Number of labels in T8.02

Post by mal » Wed Jun 25, 2008 10:24 am

If I have an X,Y line series, say with 15 points, ranging from x=0 to x=2.5 I only get 1 or two major gridlines at a LabelIncrement of 1 rather than a more natural 0.1 step. Examining the source I've tracked this down to TChartAxis.CalcLabelsIncrement which, if there are fewer points than labels, forces the increment to be at least 1. Commenting out the check leads to better looking graphs but I was wondering if the change will lead to some other more subtle errors as it was apparently added as recently as version 7.04.

Thanks,

Mal.

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

Post by Narcís » Wed Jun 25, 2008 10:47 am

Hi Mal,

Not that I can think of now. It should only affect axes increment calculation.

Anyway, you can also set the increment manuallY:

Code: Select all

  Chart1.Axes.Bottom.Increment:=0.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

mal
Newbie
Newbie
Posts: 2
Joined: Wed Oct 03, 2007 12:00 am

Post by mal » Wed Jun 25, 2008 10:59 am

Thanks for the quick reply. Setting the increment manually isn't really an option as the next time I create a graph the x-axis range may be something completely different and although I have code that does this (with TeeChart 3) one of the reasons I upgraded to T8 was the improved choice of label increments - apart from this anomolous case.

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

Post by Narcís » Wed Jun 25, 2008 11:02 am

Hi mal,

Thanks for the feedback. I've added this to the wish-list to be reviewed for next releases.
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