AxisLabel.ResolveOverlappingOptions Property
Provides access to the options that define how to resolve overlapping axis labels.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.1.dll
NuGet Package: DevExpress.Charts
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
[XtraSerializableProperty(XtraSerializationVisibility.Content)]
public AxisLabelResolveOverlappingOptions ResolveOverlappingOptions { get; }
Property Value
Type | Description |
---|---|
AxisLabelResolveOverlappingOptions | An AxisLabelResolveOverlappingOptions object. |
Example
The Chart Control uses the built-in Resolve overlapping algorithm to rearrange labels to avoid overlaps. This examples demonstrates how to use the ResolveOverlappingOptions to fine-tune the Resolve Overlapping algorithm:
AxisLabel axisLabel = ((XYDiagram)chartControl.Diagram).AxisX.Label;
axisLabel.ResolveOverlappingOptions.AllowHide = true;
axisLabel.ResolveOverlappingOptions.AllowRotate = true;
axisLabel.ResolveOverlappingOptions.AllowStagger = true;
axisLabel.ResolveOverlappingOptions.MinIndent = 5;
The example above uses the following API members:
Member | Description |
---|---|
AxisLabelResolveOverlappingOptions.AllowHide | Gets or sets a value indicating whether or not to hide axis labels when resolving any overlap. |
AxisLabelResolveOverlappingOptions.AllowRotate | Gets or sets the value that indicates whether or not to rotate axis labels when resolving overlapping labels. |
AxisLabelResolveOverlappingOptions.AllowStagger | Gets or sets a value indicating whether or not to stagger axis labels when resolving overlapping labels. |
AxisLabel.ResolveOverlappingOptions |
Provides access to the options that define how to resolve overlapping axis labels. |
See Also