SimpleDiagram2D.Dimension Property
Gets or sets the number of pie charts that can be displayed in one line (row or column).
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v24.2.dll
NuGet Package: DevExpress.Wpf.Charts
#Declaration
#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 along with the SimpleDiagram2D.LayoutDirection property to adjust the layout of pie charts within the diagram. Depending upon the SimpleDiagram2D.LayoutDirection property’s value, pie charts are positioned in either horizontal lines (by rows) or vertically (by columns). The Dimension property specifies how many pie charts can be displayed within one row or column.
The following images show the Dimension property in action:
Property Value | Example |
---|---|
Dimension = “2” (Layout |
![]() |
Dimension = “3” (Layout |
![]() |
Note
The Dimension property is calculated automatically during resizing when the Chart
A pie chart
#Example
This example shows how to use the SimpleDiagram2D.LayoutDirection and SimpleDiagram2D.Dimension
properties to arrange multiple pies within a simple diagram.
<dxc:ChartControl AutoLayout="False">
<dxc:SimpleDiagram2D LayoutDirection="Vertical" Dimension="3">
<!-...-->
</dxc:SimpleDiagram2D>
</dxc:ChartControl>