Skip to main content
Version: 1.0.6

IDataMatrixProps

@spartanfx/react v1.0.6


@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 row headers (x-axis)
xFieldLabel?stringDisplay label for the x-axis (rows). Falls back to xField if not provided
yFieldstringField name to use for column headers (y-axis)
yFieldLabel?stringDisplay label for the y-axis (columns). Falls back to yField if not provided