Skip to main content

SimpleDiagram.Dimension Property

Gets or sets the number of pie charts that can be displayed in one line (row or column).

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.1.dll

NuGet Package: DevExpress.Charts

Declaration

[XtraChartsLocalizableCategory(XtraChartsCategory.Layout)]
[XtraSerializableProperty]
public int Dimension { get; set; }

Property Value

Type Description
Int32

A positive integer that specifies the number of pie charts in one line.

Remarks

The Dimension property can be used together with the SimpleDiagram.LayoutDirection property to adjust the layout of pie charts within the diagram. Depending upon the SimpleDiagram.LayoutDirection property’s setting, pie charts are positioned either in lines horizontally (by rows) or vertically (by columns). The Dimension property specifies how many pie charts can be displayed within one row or column.

Property Settings LayoutDirection = Horizontal LayoutDirection = Vertical
Dimension = 3 Dimension_LayoutDirection_3_Horizontal.png Dimension_LayoutDirection_3_Vertical.png
Dimension = 2 Dimension_LayoutDirection_2_Horizontal.png Dimension_LayoutDirection_2_Vertical.png

Note

The Dimension property is calculated automatically during resizing when the ChartControl.AutoLayout or WebChartControl.AutoLayout property is set to true.

A pie chart(s) that is displayed within an incomplete row or column automatically changes its size to try and occupy all of the available free space.

See Also