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

0
0

Hi Everybody,

I use a FastLineRenderableSeries with an XyDataSeries,

when I append data with a negative incrementation of X value,
nothing seems to be drawn

for example:

 Clear();
 for (int i = 0; i < 100; i++)
 {
      Append(100-i, i);
 }
 ZoomExtents();

but this example is working

 Clear();
 for (int i = 0; i < 100; i++)
 {
      Append(i, i);
 }
 ZoomExtents();

Is there a way to get this working? In my application data comes in real time, so I can’t sort them.

Thanks in advance for your help.

Version
V2.1.0.769
  • You must to post comments
0
0

Hi Guilaume,

I believe this issue could be caused by exception thrown by data series when you append unsorted data ( please check your logcat output to confirm ). If it’s the case then you can disable this check by setting AcceptsUnsortedData = true:

        final XyDataSeries<Double, Double> dataSeries = sciChartBuilder.newXyDataSeries(Double.class, Double.class).withAcceptsUnsortedData().build();

Best regards,
Yura

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.