SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
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!
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.
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?
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 🙂
Please login first to submit.