Back to Devexpress

TcxPivotGridChartConnection.SourceForCategories Property

vcl-cxpivotgridchartconnection-dot-tcxpivotgridchartconnection-262576ae.md

latest2.4 KB
Original Source

TcxPivotGridChartConnection.SourceForCategories Property

Specifies if pivot grid rows or columns define default categories in a linked Chart View.

Declaration

delphi
property SourceForCategories: TcxPivotGridChartViewSourceForCategories read; write; default sfcRows;

Property Value

TypeDefaultDescription
TcxPivotGridChartViewSourceForCategoriessfcRows

A pivot grid row and column interpretation type.

|

Remarks

A data cell value specifies a series value in the corresponding category. Only the data cells specified as a source in the SourceData property determine values for series. To customize series labels, handle the OnGetSeriesDisplayText event.

Refer to the TcxPivotGridChartViewSourceForCategories type description for information on available options.

The default value of the SourceForCategories property is sfcRows.

Example

The Pivot Grid stores the following information:

The images below show how the Chart View interprets this data with different SourceForCategories property values:

|

Value

|

Example

| | --- | --- | |

sfcRows

|

| |

sfcColumns

|

|

Note

You can handle a pivot grid field’s OnGetGroupValueDisplayText event to specify custom labels for default categories.

See Also

TcxPivotGridChartConnection Class

TcxPivotGridChartConnection Members

cxPivotGridChartConnection Unit