Problem in displaying grid on TChart axis

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
drillright40
Newbie
Newbie
Posts: 57
Joined: Mon Nov 19, 2007 12:00 am

Problem in displaying grid on TChart axis

Post by drillright40 » Tue Jul 15, 2008 11:06 am

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

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

Post by Narcís » Tue Jul 15, 2008 11:10 am

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.
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

drillright40
Newbie
Newbie
Posts: 57
Joined: Mon Nov 19, 2007 12:00 am

Post by drillright40 » Tue Jul 15, 2008 11:28 am

Hi,
Is this will show the Grid line also at custom labels?
-Raed

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

Post by Narcís » Tue Jul 15, 2008 11:34 am

Hi Raed,

Yes, you can also see grid lines in the custom labels at the example I pointed.
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

drillright40
Newbie
Newbie
Posts: 57
Joined: Mon Nov 19, 2007 12:00 am

Post by drillright40 » Tue Jul 15, 2008 1:52 pm

Thanks

Post Reply