Skip to main content

XRChart.CustomizeSimpleDiagramLayout Event

Occurs before automatic settings are applied to the Simple Diagram‘s layout properties.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.1.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

public event CustomizeSimpleDiagramLayoutEventHandler CustomizeSimpleDiagramLayout

Event Data

The CustomizeSimpleDiagramLayout event's data class is CustomizeSimpleDiagramLayoutEventArgs. The following properties provide information specific to this event:

Property Description
Dimension Specifies the dimensions of the Simple Diagram.
LayoutDirection Specifies the series layout direction for the Simple Diagram.

Remarks

When an XRPivotGrid is assigned to the chart’s XRChart.DataSource property, and the XRChart.AutoLayoutSettingsEnabled property is enabled, the SimpleDiagram.Dimension (SimpleDiagram3D.Dimension) and SimpleDiagram.LayoutDirection (SimpleDiagram3D.LayoutDirection) properties are defined automatically, and cannot be customized at design time.

Handle the CustomizeSimpleDiagramLayout event, to manually adjust these options (via the CustomizeSimpleDiagramLayoutEventArgs.Dimension and CustomizeSimpleDiagramLayoutEventArgs.LayoutDirection properties).

To learn more, see Pivot Charting (Integration with a Pivot Grid Control).

See Also