A chart grammar you don't have to outgrow.
A typed, tree-shakable chart grammar for SVG and Canvas. Compose marks, views, scales, transforms, interactions, and motion with compact primitives or D3-compatible inputs.
San Francisco temperature range band
range
Grouped bars
bar
Bubble scatterplot
relationship
All mark, no chart.
Make it look like your product.
Same data and scales. CSS variables, themes, mark props, custom tooltips, or your own renderer control the rest.
Editorial
Product
Terminal
Monokai
Compose from marks to complete views.
Layer marks when they share a coordinate system. For compound charts, composeViews places complete definitions with fill, grid, layer, and inset utilities. Each view keeps its own scales unless you share or align them. View composition reference.
TanStack Charts builds on Leland Wilkinson's grammar of graphics and the work of ggplot2, Vega-Lite, and Observable Plot. Its marks-and-channels API is most directly inspired by Observable Plot, but the runtime is an independent implementation.