When I load the ChartSeries datasource on the OnInitializedAsync() method, the Series appears on the Chart with an animation.
Then, When I make changes the datasource ( creating a new source ), the data appears well and correctly but without the animation.
How can I update the ChartSeries AND show the animation?
<EjsChart>
<ChartPrimaryXAxis ValueType="Syncfusion.EJ2.Blazor.Charts.ValueType.Category"></ChartPrimaryXAxis>
<ChartSeriesCollection>
<ChartSeries DataSource="@lstItemsChart" XName="Hora" YName="Valor" Type="ChartSeriesType.Column">
</ChartSeries>
</ChartSeriesCollection>
</EjsChart>
<button @onclick="UpdateChart()">Update</button>
@code
{
public List<ItemChartDiaCanalHora> lstItemsChart { set; get; }
protected override async Task OnInitializedAsync()
{
lstItemsChart = dal.GetChartData(1);
// The charts loads with animation OK.
}
void UpdateChart()
{
lstItemsChart = dal.GetChartData(1);
// The chart updates the data OK, but no animation.
}
}