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

chart axis label not displayed

1 Answer 88 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Priti
Top achievements
Rank 1
Priti asked on 06 Jun 2012, 09:07 PM
Hi

I have a bar chart and want to display the Y axis label from codebehind.
I tried with code -

 Chart1.PlotArea.YAxis.AxisLabel.TextBlock.Text = "%"

but that does not show up on the chart.
please suggest how can i make a Y axis label displayed.

thanks!
-priti

1 Answer, 1 is accepted

Sort by
0
Elian
Telerik team
answered on 08 Jun 2012, 10:33 AM
Hi Priti,

By default this label is hidden, so you should add:
            chart1.PlotArea.YAxis.AxisLabel.Appearance.Visible = true;
to your code.
 
All the best,
Elian
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Priti
Top achievements
Rank 1
Answers by
Elian
Telerik team
Share this question
or