Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Chart3DControl.AspectRatio Property

Gets or sets the aspect ratio of the chart axes.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

#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