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.
Im tryin to create an effect where I have a static point on the Y Axis and I want to perform zoom in, so what I did is to increase or decrease the Max visible range, what I’m left with is the rubber band effect where my static point isn’t static anymore because the point in “Stretching” in the direction I’m zooming.
I’m not sure if that’s what you want, but from what I understand – you want to be able to zoom in and leave you point in place (let’s say it’s in the middle of Y Axis).
What I would suggest – is to Listen to VisibleRange Changes as described here and amend your visibleRange as you need.
So let’s say your starting range is [0;2], your zooming in, and your point is 1 on Y axis. You zooming in and the newRange in callback is [0.5;1.6], which makes your point being off centre. Here you would want to change it to be [0.5;1.5], this way your point is right in the middle of Y axis. And so on.
Instead of doing this in callback, you can try to write your custom modifier (in which you will use something similar), we do have a great article about implementing custom modifiers here.
Hope that helps.
Please login first to submit.