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.2.dll
NuGet Package: DevExpress.Charts
#Declaration
[XtraChartsLocalizableCategory(XtraChartsCategory.Layout)]
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 | Layout |
Layout |
---|---|---|
Dimension = 3 | ![]() |
![]() |
Dimension = 2 | ![]() |
![]() |
Note
The Dimension property is calculated automatically during resizing when the Chart
A pie chart
#Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Dimension property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.