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?
How to read and edit bottom Axis labels?
-
- 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?
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.
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 |
Instructions - How to post in this forum |
Re: How to read and edit bottom Axis labels?
Thank you Narcís.