In this video we'll take a look at our WinForms
Chart animations.
Adding animations can make your charts look
more dynamic and help guide users attention.
I already have a WinForms project open with
our Chart control added to the form.
To start the animations, set the AnimationStartMode
property to OnLoad or onDataChanged.
In this video, I'll use OnDataChanged.
If we run the app now, you'll see the bars
on the chart are all animated at once.
And they seem to fly up too quick.
So, lets go back and make some adjustments
to fix that.
I'll select a series.
Expand Elements.
Then View.
And then Animation.
First, I'll set the Duration for 2.5 seconds.
And then I'll set the BeginTime at a half
of a second.
I'll also do the same for the PointDelay setting.
Then select the second series.
I'll set its BeginTime at a quarter of a second.
Just slightly ahead of the previous series.
I'll keep the duration at 2.5 seconds and
set the PointDelay at a half a second.
For the last series, I'll leave the BeginTime
at zero and keep the same settings for Duration
and PointDelay.
Let's run this chart and take a look at the
animations now.
And you can see each series is animated a
little slower.
And each series is separate from each other.
You can also adjust other aspects of the animation
as well.
I'll adjust the easing function to BounceEasingFunction
and the easing mode to OUT for all animations.
And I'll run the chart one last time to show
the animation.
That's it for this video, to learn more about
our WinForms Controls, make sure to check
out the documentation on our website.
Thanks for watching, and thank you for choosing
DevExpress.
