Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Sometimes when data for SfAccumulationChart component was changed, other parameters were set and component is rerendering, the app is crashing with the exception:
Error: System.AggregateException: One or more errors occurred. (Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index'))
---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
at Syncfusion.Blazor.Charts.SfAccumulationChart.DoAfterRender()
at Syncfusion.Blazor.Charts.SfAccumulationChart.OnAfterRenderAsync(Boolean firstRender)
--- End of inner exception stack trace ---
This seems like a timing issue.
Steps to reproduce:
Can you please add some sort of check for the index of collection to prevent this exception from happening.