Skip to main content
Version: 1.0.4

README

@spartanfx/react v1.0.4


@spartanfx/react / DataMatrix

DataMatrix

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
/>

Variables