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

[Solved] Name X and Y axis

4 Answers 154 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Sneha Gokarn
Top achievements
Rank 1
Sneha Gokarn asked on 16 Dec 2009, 01:27 PM
how do  i put a single label for the x and y axis?

Sneha

4 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 16 Dec 2009, 04:53 PM
This documentation is always very helpful when styling items, so I think it'd be something like this:

 
RadChart1.PlotArea.XAxis.AxisLabel = "X Label"
RadChart1.PlotArea.YAxis.AxisLabel = "Y Label"

0
Sneha Gokarn
Top achievements
Rank 1
answered on 17 Dec 2009, 03:42 AM
it says they are read only properties
0
Bartholomeo Rocca
Top achievements
Rank 1
answered on 17 Dec 2009, 11:42 AM
Hello there,

Schlurk almost got it right -- these are complex properties and that's why they are read-only and cannot be set. You need to set the AxisLabel.TextBlock.Text property to achieve the desired effect:

RadChart1.PlotArea.XAxis.AxisLabel.TextBlock.Text = "X Label"
RadChart1.PlotArea.YAxis.AxisLabel.TextBlock.Text = "Y Label"


Greetings,
Bart.
0
Schlurk
Top achievements
Rank 2
answered on 17 Dec 2009, 02:00 PM
Ah yes, I should've opened up my application where I do set the labels - I forgot the Textblock.Text part :(
Tags
Chart (Obsolete)
Asked by
Sneha Gokarn
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Sneha Gokarn
Top achievements
Rank 1
Bartholomeo Rocca
Top achievements
Rank 1
Share this question
or