This is a migrated thread and some comments may be shown as answers.

x-axis labels visibility

2 Answers 71 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Sonia
Top achievements
Rank 1
Sonia asked on 22 Apr 2013, 10:46 AM
Although i have coded the x-axis label to be hidden, it is still visible in my application.

This is the statement.
chart.PlotArea.XAxis.AxisLabel.Visible = false;

What i am doing wrong?

2 Answers, 1 is accepted

Sort by
0
Accepted
Ves
Telerik team
answered on 25 Apr 2013, 01:22 PM
Hi Sonia,

This code does hide successfully the axis label at our end. Still, if you need to hide the axis item labels i.e. the values along the axis you should use this line:

chart.PlotArea.XAxis.Appearance.LabelAppearance.Visible = false;


Regards,
Ves
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Sonia
Top achievements
Rank 1
answered on 26 Apr 2013, 08:35 AM
I though that setting AxisLabel.Visible to false hides the items. Your post has helped me to understand that this is different from the item labels.
Thank you.
Tags
Chart (Obsolete)
Asked by
Sonia
Top achievements
Rank 1
Answers by
Ves
Telerik team
Sonia
Top achievements
Rank 1
Share this question
or