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