Formula auditing
Visualize formula dependencies with trace precedents and dependents
Overview
Basic Usage
import { SpreadsheetProvider, CanvasGrid } from "@rowsncolumns/spreadsheet";
import { useSpreadsheetState } from "@rowsncolumns/spreadsheet-state";
const MySpreadsheet = () => {
const {
activeCell,
activeSheetId,
arrows,
onTracePrecedents,
onTraceDependents,
onRemoveArrows,
...rest
} = useSpreadsheetState({
sheets,
sheetData,
onChangeSheets,
onChangeSheetData
});
return (
<div>
<div className="toolbar">
<button onClick={() => onTracePrecedents(activeSheetId, activeCell)}>
Trace Precedents
</button>
<button onClick={() => onTraceDependents(activeSheetId, activeCell)}>
Trace Dependents
</button>
<button onClick={onRemoveArrows}>
Remove Arrows
</button>
</div>
<CanvasGrid
{...rest}
activeCell={activeCell}
arrowComponents={arrows}
/>
</div>
);
};API Reference
onTracePrecedents
onTraceDependents
onRemoveArrows
arrows
Use Cases
Debugging Complex Formulas
Impact Analysis
Interactive Formula Explorer
Visual Styling
Notes
Last updated