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!

0
0

Hello,

In one use case of our application it is desired to keep the sizes of lines and shapes constant even when the viewport size is changing. On resizing, just a differnt portion of the same content is shown as we are used from office writers etc.

What is the most simple way to achieve this behavior?

Thanks very much!

Thoralf

  • You must to post comments
0
0

Hello Andrew,

Thank you. I mean resizing of the SciChart surface that happens on window resizing. SciChart keeps the X/Y ranges constant by default but we need a different behavior: In fact, the ranges must grow as surface size grows, showing more or less details of the chart. The dimensions of the curves on the screen must not change.

  • You must to post comments
0
0

Aha, I understand. Well, we don’t offer anything like this out of the box. You would need to manipulate the Axis.VisibleRange on Resize to ensure it stayed the same ratio.

The centre pane is the SciChartSurface.ModifierSurface. Based on the initial XAxis.VisibleRange (say 0..10), and given the SciChartSurface.ModifierSurface.ActualWidth = 400 pixels, if you resize to SciChartSurface.ModifierSurface.ActualWidth = 440 pixels, you would need to set the XAxis.VisibleRange to 0..11 to maintain the appearance you require.

Does it make sense?

  • You must to post comments
0
0

Yes, that makes sense, thank you.
I just wanted to be sure that I do not miss a well known, wide way there 🙂 On first view our desire seems like something very static, simple. But it’s right, the software will have to calculate a lot to achieve this static behavior 🙂

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.