How to read and edit bottom Axis labels?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
vivek
Newbie
Newbie
Posts: 40
Joined: Thu Jul 19, 2007 12:00 am

How to read and edit bottom Axis labels?

Post by vivek » Tue Jul 28, 2009 1:54 pm

Hi,

I want to read and edit the bottom axis label. But i am not able to read the label. I tried with the following code,

[code]for (int cntLbl = 0; cntLbl < tChart.Axes.Bottom.Labels.Items.Count; cntLbl++)
tChart.Axes.Bottom.Labels.Items[cntLbl].Text = getSpecifiedDetFromPoint(tChart.Axes.Bottom.Labels.Items[cntLbl].Text, selectedYAxis);//Editing the label[/code]

The problem is [code]tChart.Axes.Bottom.Labels.Items.Count [/code]is returning zero.

How to read and edit the Axis labels?

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

Re: How to read and edit bottom Axis labels?

Post by Narcís » Tue Jul 28, 2009 2:26 pm

Hi vivek,

Your aproach can only be used when manually adding custom labels to the axis. You can do what you request using the GetAxisLabel event. You'll find examples at Tutorial 4. Tutorials can be found 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

vivek
Newbie
Newbie
Posts: 40
Joined: Thu Jul 19, 2007 12:00 am

Re: How to read and edit bottom Axis labels?

Post by vivek » Wed Jul 29, 2009 4:47 am

Thank you Narcís.

Post Reply