Back to Devexpress

BarGrowUpAnimation Class

corelibraries-devexpress-dot-xtracharts-aba01d8e.md

latest4.7 KB
Original Source

BarGrowUpAnimation Class

The Grow Up bar series animation.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public sealed class BarGrowUpAnimation :
    BarAnimationBase
vb
Public NotInheritable Class BarGrowUpAnimation
    Inherits BarAnimationBase

Remarks

This animation looks as follows.

Refer to the Animation topic’s Series Point Animation section to learn how to assign animation to a series.

Example

This example shows how to animate a Bar Series’ points.

The following API members are used:

MemberDescription
BarSeriesView.AnimationGets or sets the bar series animation.
BarGrowUpAnimationThe Grow Up bar series animation.
AnimationBase.BeginTimeGets or sets the initial delay before animation start.
AnimationBase.DurationSpecifies the animation‘s duration.
AnimationBase.EasingFunctionGets or sets the easing function that specifies how to apply animation.
SeriesPointAnimationBase.PointOrderGets or sets the order in which points are animated.
PointAnimationOrderLists the values that specify in which order points should be animated.
ChartControl.AnimateRuns series’ animation.
csharp
private void Form1_Load(object sender, EventArgs e) {
    Series series = chartControl.Series["Binoculars"];
    SideBySideBarSeriesView seriesView = series.View as SideBySideBarSeriesView;
    if(seriesView != null) {
        seriesView.Animation = new BarGrowUpAnimation {
            BeginTime = new TimeSpan(0, 0, 0, 0, 10),
            Duration = new TimeSpan(0, 0, 0, 2, 0 ),
            PointDelay = new TimeSpan(0, 0, 0, 0, 300),
            EasingFunction = new LinearEasingFunction { EasingMode = EasingMode.In },
            PointOrder = PointAnimationOrder.Inverted
        };
    }
}

private void animateButton_Click(object sender, EventArgs e) {
    chartControl.Animate();
}
vb
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
        Dim series As Series = chartControl.Series("Binoculars")
        Dim seriesView As SideBySideBarSeriesView = TryCast(series.View, SideBySideBarSeriesView)

        If seriesView IsNot Nothing Then
            seriesView.Animation = New BarGrowUpAnimation With {
                .BeginTime = New TimeSpan(0, 0, 0, 0, 10),
                .Duration = New TimeSpan(0, 0, 0, 2, 0),
                .PointDelay = New TimeSpan(0, 0, 0, 0, 300),
                .EasingFunction = New LinearEasingFunction With {
                    .EasingMode = EasingMode.[In]
                },
                .PointOrder = PointAnimationOrder.Inverted
            }
        End If
End Sub

Private Sub animateButton_Click(ByVal sender As Object, ByVal e As EventArgs)
        chartControl.Animate()
End Sub

Inheritance

Object ChartElement AnimationBase SeriesPointAnimationBase BarAnimationBase BarGrowUpAnimation

See Also

BarGrowUpAnimation Members

DevExpress.XtraCharts Namespace