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.

0

0

When I insert a series of data (more than 100 data)into the graph, the application crashes Source code is as follows

java.lang.UnsupportedOperationException: Data has been changed to a DataSeries which is unsorted in the X-Direction. Unsorted data can have severe performance implications in SciChart.

For maximum performance, please double-check that you are only inserting sorted data to SciChart. Alternatively, to disable this warning and allow unsorted data, please call dataSeries.setAcceptsUnsortedData(true).

I set up “dataSeries.setAcceptsUnsortedData (true)”, but still reported wrong. how to solve it?

Are you sure that you set AcceptsUnsortedData for all data series which contain unsorted data? As I see you have multiple data series instances so maybe you didn’t set AcceptsUnsortedData = true for one of them? I’m asking because the exception about unsorted data should be thrown only if data series instance contains unsorted data in X direction and its AcceptsUnsortedData = false.

If you checked your code and you’re sure that all data series with unsorted data have AcceptsUnsortedData = true then I want to ask you to post an example which reproduces this issue so I can debug it on my PC.