RadChart Axis Label

Thread is closed for posting
3 posts, 0 answers
  1. Amol
    Amol avatar
    1 posts
    Member since:
    Jan 2009

    Posted 08 Sep 2010 Link to this post

    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>
                        <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>                                                

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

    Any suggestions would be appreciated.

    Amol Ajgaonkar
  2. Evgenia
    Evgenia avatar
    1396 posts

    Posted 13 Sep 2010 Link to this post

    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,
    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
  3. DevCraft R3 2016 release webinar banner
  4. Munish
    Munish avatar
    13 posts
    Member since:
    Jul 2012

    Posted 24 Jun 2012 Link to this post

    this helps me.
Back to Top