Skip to main content
Version: 1.0.4

DataMatrix

@spartanfx/react v1.0.4


@spartanfx/react / DataMatrix

Variable: DataMatrix

const DataMatrix: React.FC<IDataMatrixProps>

DataMatrix - A production-ready pivot table component for React.

Renders a matrix grid with:

  • Configurable x-axis (columns) and y-axis (rows) fields
  • Count or sum aggregation
  • Sticky headers for scrollable data
  • Optional row/column totals
  • Accessible markup and keyboard navigation

Example

<DataMatrix
items={salesData}
xField="region"
yField="product"
aggregation={{ type: "sum", field: "revenue" }}
showTotals
/>