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

Answered
0
0

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.

Images
  • You must to post comments
Best Answer
2
0

Hi Uwe,

Use LayoutTransform, not RenderTransform đŸ˜‰

Best regards,
Andrew

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

Please first to submit.