TanStack Did It Again... They Fixed Charts
TanStack Charts is a new JavaScript charting library using a grammar-of-graphics approach (similar to ggplot2 in R), treating charts as compositions of marks, scales, and mappings rather than fixed chart types. It supports ~55 mark types including bars, lines, areas, sankey diagrams, tree maps, radar charts, world maps, and more. Key features include SVG and canvas output, animations, tooltips, interactions (brushing, zooming, keyboard selection), export to SVG/PNG, and a three-level styling system via CSS variables, theme blocks, and per-mark properties. The bundle size is 36–43 KB, significantly smaller than Chart.js (45–58 KB) and Recharts (153–168 KB). The API is framework-agnostic with a React adapter, fully type-safe, and deliberately designed to be AI-composable without requiring documentation reading.