Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Chart > Y Axis Label Alignment

Not answered Y Axis Label Alignment

Feed from this thread
  • Hang avatar

    Posted on Jan 31, 2012 (permalink)

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

    Chart is in attachement.

    Thanks,
    Hang
    Attached files

    Reply

  • jumpstart Master avatar

    Posted on Feb 1, 2012 (permalink)

    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!

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Chart > Y Axis Label Alignment
Related resources for "Y Axis Label Alignment"

ASP.NET Chart Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]