Skip to main content
Version: 1.0.4

IDataMatrixProps

@spartanfx/react v1.0.4


@spartanfx/react / IDataMatrixProps

Interface: IDataMatrixProps

Props for the DataMatrix component

Properties

PropertyTypeDescription
aggregationField?stringAggregation field: numeric field to use for aggregation Ignored if aggregation type is set to 'count'
aggregationTypeAggregationTypeAggregation mode: count or sum
appearance?AppearanceModeAppearance mode: light or dark
blankLabel?stringLabel for blank/missing values (default: "(Blank)")
className?stringCustom class name for the container
formatValue?(value) => stringCustom formatter for cell values
itemsRecord<string, unknown>[]Array of data records to pivot
showTotals?booleanWhether to show row/column totals and grand total (default: true)
tokens?IDataMatrixTokensCustomization tokens for styling
xFieldstringField name to use for column headers (x-axis)
yFieldstringField name to use for row headers (y-axis)