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


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?

  • You must to post comments

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() {
        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,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.