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

RadChart Axis Label

2 Answers 270 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Amol
Top achievements
Rank 1
Amol asked on 08 Sep 2010, 09:41 PM
I am using RADchart control in an ASP.NET application.

The chart shows up nicely but the Axis label  for the chart does not show no matter how I set it.

I have set the Axis Label in ASPX markup as:

  <PlotArea XAxis-LayoutMode="Normal">
                    <XAxis LayoutMode="Normal" Appearance-ValueFormat="Currency" Appearance-EndCap="AnchorMask" Visible="True" VisibleValues="Positive">
                        <AxisLabel><TextBlock Text="Actual Price" Appearance-Position-AlignedPosition=Bottom Visible="true" Appearance-Border-PenStyle="Solid" Appearance-FillStyle-MainColor="Black"></TextBlock></AxisLabel>
                    </XAxis>
                    <YAxis AxisMode="Extended" Appearance-ValueFormat="Currency" Appearance-EndCap="AnchorMask" Visible="True" VisibleValues="Positive">
                        <AxisLabel><TextBlock Text="Predicted Price" Appearance-Position-AlignedPosition=Bottom Visible="true" Appearance-Border-PenStyle="Solid" Appearance-FillStyle-MainColor="Black"></TextBlock></AxisLabel>                                                
                    </YAxis>
                </PlotArea>


I am baffled, no matter how I set it, the labels just dont show up.

Any suggestions would be appreciated.

Thanks
Amol Ajgaonkar

2 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 13 Sep 2010, 03:49 PM
Hello Amol,

Your code for setting the axis labels is correct. You just need to set the property AxisLabel-Visible to true as axis labels are hidden by default.
You can turn it on in code-behind as well :
radChart1.PlotArea.XAxis.AxisLabel.Visible = true;

All the best,
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
Munish
Top achievements
Rank 1
answered on 25 Jun 2012, 03:52 AM
this helps me.
Tags
Chart (Obsolete)
Asked by
Amol
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Munish
Top achievements
Rank 1
Share this question
or