corelibraries-devexpress-dot-xtracharts-dot-axislabelresolveoverlappingoptions-f045c59d.md
Gets or sets a value indicating whether or not to stagger axis labels when resolving overlapping labels.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
public bool AllowStagger { get; set; }
Public Property AllowStagger As Boolean
| Type | Description |
|---|---|
| Boolean |
true if staggering axis labels is allowed; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to AllowStagger |
|---|---|
| AxisLabel |
.ResolveOverlappingOptions .AllowStagger
|
The following table demonstrates this property in action.
| AllowStagger = false | AllowStagger = true |
|---|---|
Use the AllowStagger , AxisLabelResolveOverlappingOptions.AllowRotate and AxisLabelResolveOverlappingOptions.AllowHide properties to define which algorithms can be used when resolving the overlap of axis labels.
Note
The AxisLabelResolveOverlappingOptions.AllowRotate and AllowStagger properties only affect labels of a horizontal XY-Diagram axis (an arguments x-axis or values y-axis when XYDiagram.Rotated is enabled).
For more information about overlapping axis label resolution, refer to the Axis Labels document.
The following code snippets (auto-collected from DevExpress Examples) contain references to the AllowStagger 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.
winforms-charts-create-real-time-chart/CS/RealTimeChartUpdates/Form1.cs#L31
diagram.AxisX.Label.ResolveOverlappingOptions.AllowRotate = false;
diagram.AxisX.Label.ResolveOverlappingOptions.AllowStagger = false;
diagram.AxisX.WholeRange.SideMarginsValue = 0;
diagram.AxisX.Label.ResolveOverlappingOptions.AllowRotate = false;
diagram.AxisX.Label.ResolveOverlappingOptions.AllowStagger = false;
diagram.AxisX.VisualRange.EndSideMargin = 200;
winforms-heatmap-bind-to-data-source/CS/Form1.cs#L66
heatmap.AxisX.Label.Staggered = false;
heatmap.AxisX.Label.ResolveOverlappingOptions.AllowStagger = false;
heatmap.AxisX.Label.ResolveOverlappingOptions.AllowRotate = false;
winforms-charts-create-real-time-chart/VB/RealTimeChartUpdates/Form1.vb#L35
diagram.AxisX.Label.ResolveOverlappingOptions.AllowRotate = False
diagram.AxisX.Label.ResolveOverlappingOptions.AllowStagger = False
diagram.AxisX.WholeRange.SideMarginsValue = 0
diagram.AxisX.Label.ResolveOverlappingOptions.AllowRotate = False
diagram.AxisX.Label.ResolveOverlappingOptions.AllowStagger = False
diagram.AxisX.VisualRange.EndSideMargin = 200
winforms-heatmap-bind-to-data-source/VB/Form1.vb#L44
Me.heatmap.AxisX.Label.Staggered = False
Me.heatmap.AxisX.Label.ResolveOverlappingOptions.AllowStagger = False
Me.heatmap.AxisX.Label.ResolveOverlappingOptions.AllowRotate = False
See Also
AxisLabelResolveOverlappingOptions Class