Skip to main content

ChartControlBase.AutoLayout Property

Gets or sets a value which specifies whether the adaptive layout feature is enabled for chart elements in the chart control.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

Declaration

public bool AutoLayout { get; set; }

Property Value

Type Description
Boolean

true, to apply the adaptive layout algorithm to the chart; otherwise, false.

Remarks

The adaptive layout feature is used to maintain a better chart appearance and layout when the chart becomes smaller.

To accomplish this task, the chart elements that have a Visible property (e.g., a legend, an axis, an axis title, a chart title) are hidden.

In addition, the label position inside bars can be changed for those labels for which the BarSideBySideSeries2D.LabelPosition property is set to Bar2DLabelPosition.Auto mode (the default value).

The following images demonstrate the AutoLayout property in action for BarSideBySideSeries2D.

AutoLayout =true (the default value) AutoLayout = false
AdaptiveLayoutTrue AdaptiveLayoutFalse

In the case of pie and donut charts, the Dimension property for SimpleDiagram2D and SimpleDiagram3D is calculated automatically during resizing. For instance, when you decrease chart size, all pies (donuts) are placed in one line horizontally (by row) or vertically (by column) in the diagram to occupy all the available free space.

See Also