SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
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.
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.