prepare-chart-data
Installation
SKILL.md
Prepare Chart Data
Use trigger → inspect → decide → build → verify. Keep analytical preparation outside responsive layout and preserve the row lineage needed by tooltips, selection, tables, and drill-down.
Setup
Prepare semantic rows once, then pass them to marks:
import { groupBy, lineY, rollingWindow } from '@tanstack/charts'
interface Order {
day: string
region: string
amount: number
}