SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

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.