tanstack-charts
Installation
SKILL.md
TanStack Charts
Use this skill when work touches TanStack Charts, especially mark composition, transforms, compact vs D3 scales, React Chart, SSR, tooltips/focus, Canvas, optional motion(), React Native, spatial/hierarchy/network entries, or migrations.
Treat the library as pre-alpha (0.14.0 at skill refresh). Official docs say it is not ready for production use. Verify current docs and the npm latest version before relying on edge APIs. Prefer official docs / GitHub tag v0.14.0 over stale search or archived react-charts.
Workflow
- Confirm the stack is the new TanStack Charts on the unified package:
- Correct:
bun add @tanstack/chartsplus framework peers. ImportChartfrom@tanstack/charts/react, scales from@tanstack/charts/scales/linear(and/band,/point,/ordinal). - Compatibility only:
@tanstack/react-charts,@tanstack/charts-scales, and other@tanstack/*-chartsadapter packages still exist for existing apps. Do not add them to new code. - Wrong: unscoped
react-charts, oroptions/primaryAxis/secondaryAxes/UserSerie.
- Correct:
- Refresh versions and URLs from source-map.md.
- Installation,
defineChart, scales, axes, tooltip extensions: setup-core.md. - Marks,
decorative, polar/geo, composites: marks-composition.md. - Eager transforms vs mark layout: transforms-layouts.md.
- Adapters, sizing, focus, crosshair, brush/zoom/cursor/selection, motion, SSR: frameworks-interaction.md.
- Testing, large data, Canvas, custom marks, AI checks, migrations: production-patterns.md.