IDataMatrixProps
@spartanfx/react / IDataMatrixProps
Interface: IDataMatrixProps
Props for the DataMatrix component
Properties
| Property | Type | Description |
|---|---|---|
aggregationField? | string | Aggregation field: numeric field to use for aggregation Ignored if aggregation type is set to 'count' |
aggregationType | AggregationType | Aggregation mode: count or sum |
appearance? | AppearanceMode | Appearance mode: light or dark |
blankLabel? | string | Label for blank/missing values (default: "(Blank)") |
className? | string | Custom class name for the container |
formatValue? | (value) => string | Custom formatter for cell values |
items | Record<string, unknown>[] | Array of data records to pivot |
showTotals? | boolean | Whether to show row/column totals and grand total (default: true) |
tokens? | IDataMatrixTokens | Customization tokens for styling |
xField | string | Field name to use for column headers (x-axis) |
yField | string | Field name to use for row headers (y-axis) |