Skip to main content
A newer version of this page is available. .

Chart3DControl.AspectRatio Property

Gets or sets the aspect ratio of the chart axes.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v20.2.dll

Declaration

public Size3D AspectRatio { get; set; }

Property Value

Type Description
Size3D

The axis length ratios. The default value is Size3D(1,1,1).

Remarks

The following images show a chart with different AspectRatio property values:

Use the following code to create a chart with axes of equal length.

<dxc:Chart3DControl AspectRatio="1 1 1">
<!--. . .-->
</dxc:Chart3DControl

The chart calculates the length of axes based on chart data when the AspectRatio property values are set to zero - as shown in the following code example:

<dxc:Chart3DControl AspectRatio="0 0 0">
<!--. . .-->
</dxc:Chart3DControl
See Also