I want to programatically rotate the XAxis label by 90 degrees
I've tried code like:
StyleAxisX sl = new StyleAxisX(RadChart1.PlotArea.XAxis);
sl.LabelAppearance.RotationAngle = 90;
chartSeries.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = sl.LabelAppearance.RotationAngle;
However, I get "Object reference not set to an instance of an object.".
I've tried other ways but can't resolve the problem; always the "object reference... " message.
Would be grateful for your help (am a relative Telerik newby but experienced .NET programmer).
TIA
Barry
I've tried code like:
StyleAxisX sl = new StyleAxisX(RadChart1.PlotArea.XAxis);
sl.LabelAppearance.RotationAngle = 90;
chartSeries.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = sl.LabelAppearance.RotationAngle;
However, I get "Object reference not set to an instance of an object.".
I've tried other ways but can't resolve the problem; always the "object reference... " message.
Would be grateful for your help (am a relative Telerik newby but experienced .NET programmer).
TIA
Barry