Back to Devexpress

Animate 3D Diagram

wpf-14637-controls-and-libraries-charts-suite-chart-control-animation-animate-3d-diagram.md

latest5.9 KB
Original Source

Animate 3D Diagram

  • May 28, 2021
  • 3 minutes to read

This topic lists animation effects that can be applied to a 3D Diagram, and also details how to customize animation settings for this chart element.

Overview

DXCharts for WPF allows you to animate a Diagram for 3D chart types.

The following is a list of animation actions that support a 3D chart diagram:

  • horizontal and/or vertical scrolling;
  • zooming;
  • rotation;
  • changing the perspective angle.

The image below shows the diagram’s rotation and zooming animations implemented for BarSeries3D.

Animation Customization

To apply one of the animation actions to the diagram, do the following:

Note that you also need to specify the initial and final states for each animation effect using the corresponding properties. For example, use the Diagram3DAnimation.InitialZoomPercent and Diagram3DZoomAction.FinalZoomPercent properties to customize the zooming effect for a diagram.

Example

The following example shows how to provide zooming and rotation animation actions for a 3D chart diagram.

The table below lists properties that can be used to customize animation effects for a 3D chart diagram.

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.
Diagram3DAnimation.InitialRotationProvides access to the initial rotation settings of the series point animation.
Diagram3DRotationAction.RotationProvides access to the rotation settings of the AnimationRotation object to specify the final rotation angle for the Diagram3D animation action.
Diagram3DAnimation.InitialZoomPercentSpecifies the initial zoom percent for Diagram3DAnimation. This is a dependency property.
Diagram3DZoomAction.FinalZoomPercentSpecifies the final zoom percentage for the Diagram3D animation action. This is a dependency property.
Diagram3DAnimation.InitialPerspectiveAngleSpecifies the initial perspective angle for Diagram3DAnimation. This is a dependency property.
Diagram3DPerspectiveAction.FinalPerspectiveAngleSpecifies the final perspective angle for the Diagram3D animation action. This is a dependency property.
Diagram3DAnimation.InitialHorizontalScrollPercentSpecifies the initial horizontal scroll percent for Diagram3DAnimation. This is a dependency property.
Diagram3DHorizontalScrollPercentAction.FinalHorizontalScrollPercentSpecifies the final horizontal scroll percentage for the Diagram3D animation action. This is a dependency property.
Diagram3DAnimation.InitialVerticalScrollPercentSpecifies the initial vertical scroll percent for Diagram3DAnimation. This is a dependency property.
Diagram3DVerticalScrollPercentAction.FinalVerticalScrollPercentSpecifies the final vertical scroll percentage for the Diagram3D animation action. This is a dependency property.

See Also

Animate Series Points

Animate Series