Financial Chart allows you to control how the animation is applied to each series and series elements. It allows you to enable chart animation effects through a combination of different properties available in the FlexChart class. These properties allow you to apply duration, delay and an easing function for each animation. The animation effects are applied in one of the two scenarios, either while loading the chart for the first time or while the chart is redrawn after modifications.
The following image shows how animation works in the Financial Chart control.
Use the following code to implement animation in the FlexChart control.
C# |
コードのコピー
|
---|---|
// アニメーションを適用します
financialChart1.AnimationSettings = C1.Chart.AnimationSettings.All;
financialChart1.AnimationUpdate.Easing = C1.Chart.Easing.Linear;
financialChart1.AnimationLoad.Type = C1.Chart.AnimationType.Points;
financialChart1.AnimationUpdate.Duration = 10;
|
Every animation scenario has its own set of options that can be set independently in the FlexChart control. These options include various properties describing the corresponding animation.
To implement animation in the FlexChart control, you need make use of the following properties.
AnimationSettings -This property allows the user to apply settings for the animation. It allows the user to specify that when to apply animation in the FlexChart control. This property accepts values from the AnimationSettings enumeration provided by the FlexChart class. The AnimationSettings enumeration has special flags to control axes animation (smooth transition) so that you can enable or disable smooth axis transition for loading or updating data.
AnimationOptions - The AnimationLoad and AnimationUpdate properties includes the following options.
Easing - This property allows the user to set different type of easing functions on the FlexChart control. This property accepts values from the Easing enumeration provided by the C1.Chart namespace.
Type ? This property allows you to set the animation type on the FlexChart control. This property accepts the following values from the AnimationType enumeration provided by the C1.Chart namespace.