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

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

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.

Closed
0
0

I want to render the unsorted data. Please check my code:

var dataSeries = new XyDataSeries<double, double>();

lineRenderSeries.DataSeries = dataSeries;

var xData = new double[] { 1, 2, 3,2};
var yData = new double[] { 1, 2, 3,2};

// Append data to series. SciChart automatically redraws
dataSeries.Append(xData, yData); //Stuck here.
if(dataSeries.IsSorted)

In addition, there is a exception thrown with message :

Exception thrown: ‘System.InvalidOperationException’ in SciChart.Charting.dll

Help…..

  • You must to post comments
0
0

Yes. Find the answer:
dataSeries.AcceptsUnsortedData = true;

However, the debug info is not good…

  • Yuriy
    Hi Xifeng, we’re glad the issue has been resolved. Concerning the exception being thrown, we added this because appending unsorted data can drastically decrease performance of a chart. You can find more info in this article: http://support.scichart.com/index.php?/Knowledgebase/Article/View/17227/36/performance-tips-and-tricks As to the debug info, we tried to make the exception’s message as clear as possible. It notifies that X values aren’t sortedand suggests to set DataSeries.AcceptsUnsortedData. If you have any ideas how can we improve user’s experience here, please let us know.
  • You must to post comments
Showing 1 result