Back to Devexpress

Animate Series Indicators

wpf-119007-controls-and-libraries-charts-suite-chart-control-animation-animate-series-indicators.md

latest3.8 KB
Original Source

Animate Series Indicators

  • May 28, 2021

This topic provides information on how to animate series indicators.

The document consists of the following sections:

How to Animate Series Indicators

The following code animates the WeightedClose indicator:

xaml
<dxc:ChartControl AnimationMode="OnLoad">
<!-- Other chart settings. -->
            <dxc:StockSeries2D>
                <dxc:StockSeries2D.Indicators>
                    <dxc:WeightedClose>
                        <dxc:WeightedClose.Animation>
                            <dxc:IndicatorStretchFromNearAnimation BeginTime="00:00:00"
                                                                   Duration="00:00:02">
                                <dxc:IndicatorStretchFromNearAnimation.EasingFunction>
                                    <ExponentialEase EasingMode="EaseInOut"/>
                                </dxc:IndicatorStretchFromNearAnimation.EasingFunction>
                            </dxc:IndicatorStretchFromNearAnimation>
                       </dxc:WeightedClose.Animation>
                   </dxc:WeightedClose>
                </dxc:StockSeries2D.Indicators>
            </dxc:StockSeries2D>
</dxc:ChartControl>

Use the following classes and properties to enable and configure the indicator animation:

Class or PropertyDescription
ChartControl.AnimationModeThe Chart control animation mode.
Indicator.AnimationSpecifies the indicator’s animation.
IndicatorStretchFromNearAnimationThe Stretch from Near indicator animation.
AnimationBase.BeginTimeGets or sets the animation’s starting time. (Dependency property)
AnimationBase.DurationSpecifies the animation’s duration. (Dependency property)
AnimationBase.EasingFunctionGets or sets the animation’s easing function. (Dependency property)

Available Animations

The Chart control provides the following predefined animation types:

See Also

Animate Series

Animate Series Points

Animate 3D Diagram