Page 1 of 1

Problem in displaying grid on TChart axis

Posted: Tue Jul 15, 2008 11:06 am
by 14047415
Hi,

I am setting Axis.Increment property on axis to show the minimum steps

of increment or intervals.

Example:
Setting min/max for axis using SetMinMax method(min-0, max-100)
Setting axis's Increment property as 10.

Accordingly, an axis should get divided into 10 scale points . Like
0-10,10-20,20-30,30-40,40-50,50-60,60-70,70-80,80-90,90-100

But result is
0-20,20-40,40-60,60-80,80-100

Means, instead of showing interval of 10, it is showing interval of 20.

If I am setting axis's Increment property as 15, everything is fine and if

below 15, then it is showing wrong axis scale.

Please help.

-Raed

Posted: Tue Jul 15, 2008 11:10 am
by narcis
Hi Raed,

This is most likely because if setting an increment lower to 15 labels would overlap and TeeChart automatically sets itself to an increment were labels don't overlap.

If you want to force a lower increment you'll need to use custom labels as shown in the example at All Features\Welcome!\Axes\Labels\Custom labels in the features demo, available at TeeChart's program group.

Posted: Tue Jul 15, 2008 11:28 am
by 14047415
Hi,
Is this will show the Grid line also at custom labels?
-Raed

Posted: Tue Jul 15, 2008 11:34 am
by narcis
Hi Raed,

Yes, you can also see grid lines in the custom labels at the example I pointed.

Posted: Tue Jul 15, 2008 1:52 pm
by 14047415
Thanks