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

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

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.