Back to Devexpress

ChartControlSettings.AutoLayout Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-chartcontrolsettings-985a25df.md

latest2.9 KB
Original Source

ChartControlSettings.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.Web.Mvc

Assembly : DevExpress.Web.Mvc5.v25.2.dll

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public bool AutoLayout { get; set; }
vb
Public Property AutoLayout As Boolean

Property Value

TypeDescription
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 Visibility property (e.g., a legend (LegendBase.Visibility), an axis (Axis2D.Visibility), an axis title (AxisTitle.Visibility), a chart title (DockableTitle.Visibility)) are hidden.

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

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

AutoLayout =trueAutoLayout = false (the default value)

In the case of pie and donut charts, the Dimension property for SimpleDiagram 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

ChartControlSettings Class

ChartControlSettings Members

DevExpress.Web.Mvc Namespace