Skip to main content
Version: 1.0.6

README

@spartanfx/react v1.0.6


@spartanfx/react / DataMatrix

DataMatrix

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

Renders a matrix grid with:

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

Example

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

Variables