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

Axis labeling doesn't work

2 Answers 55 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
FISCAL
Top achievements
Rank 1
FISCAL asked on 07 Oct 2010, 02:47 PM
HI,

Why the following statement does not work?

myChart.PlotArea.XAxis.AxisLabel.TextBlock.Text = "Number of Invoices";
                myChart.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.Red;

                myChart.PlotArea.YAxis.AxisLabel.TextBlock.Text = "Days to Payment";
                myChart.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.Red;

It does not display "Number of Invoices" and "Days to Payment" as x and y axis label!

Many thanks
MG

2 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 11 Oct 2010, 07:22 AM
Hi,

You just need to set the property AxisLabel-Visible to true as axis labels are hidden by default.
Here is how you can turn it on in code-behind :

radChart1.PlotArea.XAxis.AxisLabel.Visible = true;

Greetings,
Evgenia
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
FISCAL
Top achievements
Rank 1
answered on 11 Oct 2010, 09:08 AM
Thanks Evgenia!
Tags
Chart (Obsolete)
Asked by
FISCAL
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
FISCAL
Top achievements
Rank 1
Share this question
or