XRChart.PivotChartingCustomizeXAxisLabels Event
Occurs after automatic layout settings are applied to the X-axis’ labels.
Namespace: DevExpress.XtraReports.UI
Assembly: DevExpress.XtraReports.v24.2.dll
NuGet Package: DevExpress.Reporting.Core
#Declaration
public event CustomizeXAxisLabelsEventHandler PivotChartingCustomizeXAxisLabels
#Event Data
The PivotChartingCustomizeXAxisLabels 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 an XRPivotGrid is assigned to the chart’s XRChart.DataSource property and the PivotGridDataSourceOptions.AutoLayoutSettingsEnabled property is enabled, the AxisLabel.Staggered property is defined automatically, and cannot be customized at design time.
Handle the PivotChartingCustomizeXAxisLabels event, to manually adjust this option (with 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
To learn more, see Pivot Charting (Integration with a Pivot Grid Control).