SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components


I try to rotate the axistitle on a chart. the title is outside the bounds of the control. How can I make the surface resize to include the axistitle?

I set it in code behind when creating an y-axis. Thats necessary because I cannot style via datatemplates when I bind an axiscollection:

My code for the axis:

            Style s = new Style(typeof(AxisTitle));
            s.Setters.Add(new Setter(NumericAxis.RenderTransformProperty, new RotateTransform(90)));
            s.Setters.Add(new Setter(NumericAxis.RenderTransformOriginProperty, new Point(1, 0.5)));

            yAxis.TitleStyle = s;

In general it works but looks like in the picture.

  • You must to post comments
Best Answer

Hi Uwe,

Use LayoutTransform, not RenderTransform đŸ˜‰

Best regards,

  • Uwe Hafner
    Works. Still much to learn. Thanks
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.