SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & 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 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’m using SCiChart version 2.0 and trying to use the VisibleRange in realtime mode with zooming mode on DateTime axis. I want to when chart is zooming I see only zoom area, and chart shouldn’t be calculate VisibleRange, after that, when I’m double clicking on the surface, the chart should be continue working in realtime mode.

                var visibleMax = (DateTime)Properties.XAxis.VisibleRange.Max;
                var seriesMax = (DateTime)provider.DataSeries.XMax;
                if (_lastXMax != null && !Properties.XAxis.VisibleRange.IsZero)
                    var diff = seriesMax.Subtract((DateTime)_lastXMax);

                    if (visibleMax + diff >= seriesMax)
                        var existingRange = (DateRange)Properties.XAxis.VisibleRange;
                        var newRange = new DateRange(existingRange.Min, visibleMax + diff);
                        Properties.XAxis.VisibleRange = newRange;

                _lastXMax = provider.DataSeries.XMax;

But when I’m double clicking on the surface, the chart is froze(visible range doesn’t calculate correctly).. How can I calculate the VisibleRange correctly?


  • You must to post comments

Hi Arthur,

There isn’t any built-in way to check if chart is zoomed. Alternatively, you could try firing some event after zooming (see Event after zoom in thread), or compare current VisibleRange with actual DataRange.

Best regards,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.