Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Type Default Description
TcxPivotGridChartViewSourceForCategories sfcRows

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:

Pivot Grid

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

Value

Example

sfcRows

Rows

sfcColumns

Columns

Note

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

See Also