Back to Devexpress

Chart3DControl.AspectRatio Property

wpf-devexpress-dot-xpf-dot-charts-dot-chart3dcontrol-4e08609a.md

latest1.8 KB
Original Source

Chart3DControl.AspectRatio Property

Gets or sets the aspect ratio of the chart axes.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public Size3D AspectRatio { get; set; }
vb
Public Property AspectRatio As Size3D

Property Value

TypeDescription
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:

AspectRatio = “1 1 0.5”

AspectRatio = “1 1 1”

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

xaml
<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:

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

See Also

Chart3DControl Class

Chart3DControl Members

DevExpress.Xpf.Charts Namespace