Thanks for contacting Syncfusion Support.
Currently, we don’t have an in-built animation support for real time data update. However, we can achieve different type of default animation using CustomTemplate of the chart series as shown in the below code,
MainWindow.xaml:
<chart:LineSeries ItemsSource="{Binding Collection}" EnableAnimation="True"
XBindingPath="XValue" YBindingPath="YValue">
<chart:LineSeries.CustomTemplate>
<DataTemplate>
<Canvas>
<Line X1="{Binding X1}" StrokeThickness="3" Y1="{Binding Y1}" X2="{Binding X2}" Y2="{Binding Y2}" Stroke="{Binding Interior}" Name="Line">
<Line.Triggers>
<EventTrigger RoutedEvent="Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="Y1" Storyboard.TargetName="Line" From="0" To="{Binding Y1}" />
<DoubleAnimation Storyboard.TargetProperty="Y2" Storyboard.TargetName="Line" From="0" To="{Binding Y2}" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Line.Triggers>
</Line>
</Canvas>
</DataTemplate>
</chart:LineSeries.CustomTemplate>
</chart:LineSeries> |
We have prepared a sample for your reference and it can be downloaded from the below link,
Regards,
Durgadevi S