Pre loader

set visibleRangeChangeListener

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

Hi
I have a fifo scrolling chart
When I set the axis visibleRangeListener, the chart performance goes down and it gets an exception.
what is the solution?

Version
3.0.0.4253
  • You must to post comments
0
0

Hi Abolfazl Ghanbari,

I tried to set VisibleRangeChangeListener in our FIFO example and everything worked as expected without exceptions. I added next code into end of initExample():

     xAxis.setVisibleRangeChangeListener(new VisibleRangeChangeListener() {
        @Override
        public void onVisibleRangeChanged(IAxisCore axis, IRange oldRange, IRange newRange, boolean isAnimating) {
            Log.d("onVisibleRangeChanged: ", newRange.toString());
        }
    });

So it isn’t caused by settign VisibleRangeChangeListener itself. Probably it could be caused by code which you have inside listener. Unfortunately you didn’t provide any additional information about this so I can only suggest to recheck code of the listener.

Best regards,
Yura

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies