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.
I believe there’s a typo in the code tab for the view model:
if (XVisibleRange.Max > ds0.Count)
var existingRange = _xVisibleRange;
var newRange = new IndexRange(existingRange.Min + 1, existingRange.Max + 1);
XVisibleRange = newRange;
but clearly the min value should not change (at least no here) since as result the real time values will not be in the visisble region. It might be an idea to update the sample code.
What this code does is advance the VisibleRange (scroll one point to the left) when the latest price is inside the viewport. This has the effect of keeping the ticking stock chart always in view, if it is in view, but when you scroll back in time so the latest price is out of the viewport, it will not advance.
Is this not what you expected?
Please login first to submit.