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

Y Axis Label Alignment

1 Answer 31 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Hang
Top achievements
Rank 1
Hang asked on 01 Feb 2012, 02:56 AM
Hello, I am trying to figure out how to align YAxis label to the right. Please help...

Chart is in attachement.

Thanks,
Hang

1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 01 Feb 2012, 10:38 PM
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!
Tags
Chart (Obsolete)
Asked by
Hang
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Share this question
or