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

Charting

2 Answers 116 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 07 Jan 2008, 12:16 PM
Hi

I'm not able to get the AxisLabel displayed for either the X or Y Axis
(using Q3 2007 radControls)

For example:
radChart.PlotArea.XAxis.AxisLabel.TextBlock.Text = "Years"
radChart.PlotArea.YAxis.AxisLabel.TextBlock.Text = "%"

I tried using the help programmatic example to get some "clean" code
Creating RadChart Programmatically - more complex example
but it still didn't work...

Any help appreciated

Regards

Martin Hoey

2 Answers, 1 is accepted

Sort by
0
Chavdar
Telerik team
answered on 08 Jan 2008, 09:10 AM
Hi Martin,

By default the axis labels are hidden. To show them you have to set their Visible properties to true:

    radChart.PlotArea.XAxis.AxisLabel.Visible = true;
    radChart.PlotArea.YAxis.AxisLabel.Visible = true;
   
Hope this helps.

All the best,
Chavdar
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Martin
Top achievements
Rank 1
answered on 10 Jan 2008, 05:06 PM
Hi  Chavdar

I've sorted my chart problem, I understood about the AxisLabel visible properties already, it just needed some tweaking of the margins....

Many thanks to you guys for all the help provided, I've finished my evaluation of RadControls and am just about to purchase....
Very impressed with Product and Support!

Thanks

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