ChartControl.CustomizeXAxisLabels Event
OBSOLETE
The Customize
Occurs after automatic layout settings are applied to the X-axis’ labels.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.UI.dll
NuGet Package: DevExpress.Win.Charts
#Declaration
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("The CustomizeXAxisLabels event is obsolete now. Use the PivotChartingCustomizeXAxisLabels event instead.")]
public event CustomizeXAxisLabelsEventHandler CustomizeXAxisLabels
#Event Data
The CustomizeXAxisLabels event's data class is CustomizeXAxisLabelsEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Axis | Gets the X-axis, whose labels are being customized. |
Staggered | Specifies whether the X-axis labels should be staggered. |
#Remarks
When a familiar data source (such as the PivotGridControl) is assigned to the chart’s ChartControl.DataSource property, and the PivotGridDataSourceOptions.AutoLayoutSettingsEnabled property is turned on, the AxisLabel.Staggered property is defined automatically, and cannot be customized at design time.
Handle the CustomizeXAxisLabels event, to manually adjust this option (via the CustomizeXAxisLabelsEventArgs.Staggered property). To access the X-axis, use the CustomizeXAxisLabelsEventArgs.Axis property.
Note
The X-axis’ labels are staggered, if the axis scale type is Qualitative or Date
For more information, see Pivot Charting (Integration with a Pivot Grid Control).