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

0 votes
3k views

The complete message is: Unsorted data occurs in the collection. The only allowed SearchMode is Exact when FindIndex() is called on an unsorted collection, but Nearest was passed in.

I started with three renderable series that all had a certain time scale (x axis). I want to add another renderable series but it uses a separate time scale (x axis). I received this error so I put the two lists (x axis and y axis data) into a dictionary and used orderby on the dictionary key (time scale x axis list). I then cleared and appended this data to my DataSeries property. The code is still throwing this exception. What does unsorted mean?

Thanks.

Edit: The data is ordered by the key (timespan) in ascending order before I use orderby.

  • Ryan Woods asked 3 years ago
  • last active 9 months ago
Showing 1 result
This template supports the sidebar's widgets. Add one or use Full Width layout.