PivotGridControl.ChartDataProvidePriority Property
Gets or sets whether the pivot grid should pass columns or rows to a bound chart control when it is impossible to find the lowest-level data. This is a dependency property.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v24.2.dll
NuGet Package: DevExpress.Wpf.PivotGrid
Declaration
Property Value
Type | Description |
---|---|
PivotChartDataProvidePriority | A PivotChartDataProvidePriority enumeration member that specifies whether the pivot grid should pass columns or rows to a bound chart control. |
Available values:
Name | Description |
---|---|
Columns | Columns are passed to the chart when PivotGridControl.ChartDataProvideMode is set to PivotChartDataProvideMode.ProvideLastLevelData and it is impossible to find the lowest level within the selection. |
Rows | Rows are passed to the chart when PivotGridControl.ChartDataProvideMode is set to PivotChartDataProvideMode.ProvideLastLevelData and it is impossible to find the lowest level within the selection. |
Remarks
The ChartDataProvidePriority property is in effect when the PivotGridControl.ChartDataProvideMode property is set to PivotChartDataProvideMode.ProvideLastLevelData, but the pivot grid is unable to define which values have the lowest level.
For instance, consider the following pivot grid.
The selection contains cells from three aggregation levels: (Product Name, Grand Total), (Grand Total, Order Year), (Grand Total, Grand Total). In this instance, the PivotGridControl cannot define which of the two former levels is the lowest.
The ChartDataProvidePriority property allows you to specify whether to chart a column (the (Product Name, Grand Total) level) or row (the (Grand Total, Order Year) level).