Animation in WPF Charts (SfChart)

4 Sep 2020 / 1 minute to read

SfChart allows you to animate the chart series on loading, and whenever the ItemsSource changes. Animation in chart can be enabled by setting the EnableAnimation property as True and defining the corresponding animation speed with AnimationDuration property.

The following types of series support Animation.

  • Line
  • Column
  • Bar
  • Area
  • Scatter
  • Bubble
  • Spline
  • Spline area
  • Stacking column
  • Stacking bar
  • Stacking area
  • Pie

The following APIs are used to customize the Animation.

  • EnableAnimation-Represents a boolean value to enable the animation for series.
  • AnimationDuration-Represents a TimeSpan value which sets animation speed for the chart.

The following example shows the Animation feature for chart series.


<syncfusion:ColumnSeries EnableAnimation="True" AnimationDuration="00:00:03" 

XBindingPath="Category" YBindingPath="Count" ItemsSource="{Binding}"/>

ColumnSeries columnSeries = new ColumnSeries()

        ItemsSource = new ViewModel().Data,

        XBindingPath = "Category",

        YBindingPath = "Count",

        EnableAnimation = true,

        AnimationDuration = new TimeSpan(00, 00, 03)



Column Series

Animation support in WPF SfChart

SplineArea Series

Animation support in WPF SfChart

Scatter Series

Animation support in WPF SfChart