Y Axis Label Alignment

Thread is closed for posting
2 posts, 0 answers
  1. Hang
    Hang avatar
    1 posts
    Member since:
    Jan 2012

    Posted 31 Jan 2012 Link to this post

    Hello, I am trying to figure out how to align YAxis label to the right. Please help...

    Chart is in attachement.

    Thanks,
    Hang
  2. jumpstart
    jumpstart avatar
    479 posts
    Member since:
    Nov 2011

    Posted 01 Feb 2012 Link to this post

    Hang:

    Take a look at this code snippet, which sets a custom display for the y-axis labels:
    BaseChart.PlotArea.YAxis.AxisLabel.Visible = true;
    BaseChart.PlotArea.YAxis.AxisLabel.Appearance.RotationAngle = 360;
    BaseChart.PlotArea.YAxis.AxisLabel.Appearance.Position.Auto = false;
    BaseChart.PlotArea.YAxis.AxisLabel.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.None;
    BaseChart.PlotArea.YAxis.AxisLabel.Appearance.Position.X = 20;
    BaseChart.PlotArea.YAxis.AxisLabel.Appearance.Position.Y = -30;

    I believe you can use:
    BaseChart.PlotArea.YAxis.AxisLabel.Appearance.Position.Auto = true;
    BaseChart.PlotArea.YAxis.AxisLabel.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Right;

    Please refer to the Axis Labels documentation page for insights.

    Hope this helps!
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top