Hello,
im currently using syncfusion blazor 23.2.4.
I'm trying to change the datasource of my chart using a dropdownList but when im doing it i have this error that is being trigger :
Collection was modified; enumeration operation may not execute.
How is this possible to do it ?
<SfAccumulationChart @ref="sfChart" Title="@title" Height="95%" Width="95%" EnableSmartLabels="true" >
<AccumulationChartEvents Loaded="@LoadHandler" ></AccumulationChartEvents>
<AccumulationChartSeriesCollection>
<AccumulationChartSeries DataSource="@objectifForSiteProducts" XName="ProductName" YName="WeightQuantity"
Name="Product" InnerRadius="80%">
<AccumulationDataLabelSettings Visible="true" Name="ProductName" Position="AccumulationLabelPosition.Outside">
<Template>
@{
var data = context as AccumulationChartDataPointInfo;
}
<table>
<tr>
<td align="center" style="font-weight: bold;font-size: 14px;"> @Math.Round((double)data.Y, 2) </td>
</tr>
<tr>
<td align="center" style="font-size: 14px; font-weight: bold;"> @Math.Round(data.Percentage, 0) %</td>
</tr>
</table>
</Template>
</AccumulationDataLabelSettings>
</AccumulationChartSeries>
</AccumulationChartSeriesCollection>
<AccumulationChartLegendSettings Visible="true" Position="Syncfusion.Blazor.Charts.LegendPosition.Bottom"></AccumulationChartLegendSettings>
</SfAccumulationChart>
this is my current accumulationChart
Thanks
Anthony