EnableAnimation = false not working

I'd like to disable the draw animation on the charts but setting EnableAnimation = false does not seem to work.

<div class="control-section">
    <SfChart Title="Inflation - Consumer Price" Theme="@Theme" EnableAnimation="false">
        <ChartArea><ChartAreaBorder Width="0"></ChartAreaBorder></ChartArea>
        <ChartPrimaryXAxis ValueType="Syncfusion.Blazor.Charts.ValueType.DateTime" LabelFormat="yyyy" IntervalType="IntervalType.Years" EdgeLabelPlacement="EdgeLabelPlacement.Shift">
            <ChartAxisMajorGridLines Width="0"></ChartAxisMajorGridLines>
        </ChartPrimaryXAxis>
        <ChartPrimaryYAxis LabelFormat="{value}%" RangePadding="ChartRangePadding.None" Minimum="0" Maximum="100" Interval="20">
            <ChartAxisLineStyle Width="0"></ChartAxisLineStyle>
            <ChartAxisMajorTickLines Width="0"></ChartAxisMajorTickLines>
        </ChartPrimaryYAxis>
        <ChartTooltipSettings Enable="true"></ChartTooltipSettings>
        <ChartSeriesCollection>
            <ChartSeries DataSource="@ChartData" Name="Germany" XName="Period" Width="2"
                         Opacity="1" YName="ENG_InflationRate" Type="ChartSeriesType.Line">
                <ChartMarker Visible="true" Width="10" Height="10">
                </ChartMarker>
            </ChartSeries>
            <ChartSeries DataSource="@ChartData" Name="England" XName="Period" Width="2"
                         Opacity="1" YName="GER_InflationRate" Type="ChartSeriesType.Line">
                <ChartMarker Visible="true" Width="10" Height="10">
                </ChartMarker>
            </ChartSeries>
        </ChartSeriesCollection>
    </SfChart>
</div>

3 Replies 1 reply marked as answer

SM Srihari Muthukaruppan Syncfusion Team February 23, 2021 10:32 AM UTC

Hi Micheal, 
 
We have analyzed your query. From that, we would like to let you know that EnableAnimation in the chart is used to disable the animation of gridlines, tickline and labels on rerendering. To disable the series animation we suggest you to use seriesAnimation property in the series of the chart as shown in the below code snippet to achieve your requirement. 
 
 
Code Snippet: 
<ChartSeries DataSource="@ChartData" Name="England" XName="Period" Width="2" 
                         Opacity="1" YName="GER_InflationRate" Type="ChartSeriesType.Line"> 
                <ChartSeriesAnimation Enable="false"></ChartSeriesAnimation> 
                <ChartMarker Visible="true" Width="10" Height="10"> 
                </ChartMarker> 
            </ChartSeries> 
 
Let us know if you have any concerns. 
 
Regards, 
Srihari M 


Marked as answer

MA Michael Aston February 23, 2021 11:30 AM UTC

Thanks


SM Srihari Muthukaruppan Syncfusion Team February 24, 2021 06:20 AM UTC

Hi Michael, 
 
Most welcome. Kindly get in touch with us, if you requires further assistance. We are always happy in assisting you.   
   
Thanks,   
Srihari M 


Loader.
Up arrow icon