SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
I have created a CustomFastLineRenderableSeries which inherits from FastLineRenderableSeries to be able to create custom data point shapes. Everything was good with Y-axis zoom but as soon as i enabled X-axis zoom, looks like the datapoints disappear on zoom-in.
Also i’m getting below exception on zoom which might be related:
Index was outside the bounds of the array.
Exception thrown: ‘System.IndexOutOfRangeException’ in SciChart.Data.dll
Any idea on this? Should limit xvisibleRange?
Thanks for posting your code here. The problem is that you use IPointSeries.Indexes to walk through the PointSeries, which is incorrect. As the comment to the property says, the Indexes property
Gets the indexes of points in the original DataSeries
So these indexes belongs to DataSeries which you assigned to RenderableSeries, not to PointSeries which you receive in the InternalDraw method. The difference is that PointSeries may contain a resampled (reduced) data, and the Indexes property is required to keep a connection to the original DataSeries.
What you should do, is just enumerate PointSeries itself in a loop.
Alternatively, you could switch resampling off setting ResamplingMode to “None” on your series.
Please try it and let us know if everything works OK,
Please login first to submit.