Back to Devexpress

Animate Series Points

wpf-14636-controls-and-libraries-charts-suite-chart-control-animation-animate-series-points.md

latest5.2 KB
Original Source

Animate Series Points

  • May 28, 2021
  • 2 minutes to read

This topic explains how to animate series points and customize their animation settings for both 2D and 3D chart types.

Series Points Animation in 2D Charts

Series points can be animated using either built-in or custom animation effects.

If you wish to apply the built-in animation effect to chart elements (Series and/or Series Points, depending on a given series), specify the chart animation mode using the ChartControl.AnimationMode property.

Note

To obtain the list of all animations that are available for a given series, use the Series.GetPredefinedSeriesAnimationKinds and Series.GetPredefinedPointAnimationKinds methods.

To specify custom animation for series points, assign an animation effect to the PointAnimation property of the series (e.g., AreaSeries2D.PointAnimation).

The image below shows the CircularMarkerWidenAnimation effect for the PolarLineSeries2D chart.

Example

The following tutorial shows how to animate a chart’s series points.

The table below lists properties that can be used to customize the animation effect for series points.

MemberDescription
SeriesPointAnimationBase.PointDelaySpecifies the delay sustained when animating the series points. This is a dependency property.
SeriesPointAnimationBase.PointOrderDefines the order in which series points are animated. This is a dependency property.
AnimationBase.BeginTimeSpecifies the time when the animation is started. This is a dependency property.
AnimationBase.DurationSpecifies the duration of the animation. This is a dependency property.
AnimationBase.EasingFunctionSpecifies the easing function for the animation. This is a dependency property.

Series Points Animation in 3D Charts

3D Chart types support the animation of its series points.

To animate a 3D chart’s series points, do the following:

Example

The following example shows how to animate a series point’s argument and value.

To customize the animation effect for both the series and its series points, use the following properties:

MemberDescription
ChartControl.AnimationRecordsProvides access to a collection of animation records within a chart.
Diagram3DAnimation.ActionsSpecifies which parameters of the Diagram3D object should be animated. This is a dependency property.
ChartAnimationRecord.ProgressGets or sets a progress value of the current animation record.

See Also

Animate Series

Animate 3D Diagram