Chart.js sync from grid filter state
Live in demo 73-chartjs-sync.
When
A chart that re-renders from api.getDisplayedRows() on every filter / sort change.
How
Key API surface:
api.getDisplayedRows()onFiltersChange / onSortingChange
See the demo source for the full implementation; this recipe pins the pattern + the surface so you can copy-paste it confidently. The doc page that explains the underlying feature in depth is linked from the recipes index.
See also
- Demo 73-chartjs-sync source
- Demo 73-chartjs-sync prompt sidecar - drop into an LLM context window
- Recipes index