Page 1 of 1
Number of labels in T8.02
Posted: Wed Jun 25, 2008 10:24 am
by 10546922
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.
Posted: Wed Jun 25, 2008 10:47 am
by narcis
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;
Posted: Wed Jun 25, 2008 10:59 am
by 10546922
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.
Posted: Wed Jun 25, 2008 11:02 am
by narcis
Hi mal,
Thanks for the feedback. I've added this to the wish-list to be reviewed for next releases.