The gallery is organized by analytical question, not by package export. Start with what the reader needs to compare, then open the family page for examples and implementation guidance.
Each embedded chart is a production catalog case rendered with TanStack Charts. The examples demonstrate complete compositions, while the concept and reference pages remain the source of truth for individual APIs.
| Question | Example family |
|---|---|
| How does a value change over an ordered domain? | Lines and Areas |
| Which categories are largest, smallest, or most changed? | Bars and Rankings |
| How are quantitative measures related? | Scatterplots and Relationships |
| What is the shape, spread, or rank of a quantitative variable? | Distributions |
| Where are values concentrated across a matrix or plane? | Heatmaps and Densities |
| What span, uncertainty, or open-high-low-close interval does each row represent? | Intervals and Financial Charts |
| How does a total divide into contributions? | Stacked and Composed Charts |
| How should the same encoding repeat across groups? | Facets and Multiple Views |
| How are entities connected or nested? | Networks and Hierarchies |
| How do values relate to geographic or projected space? | Maps and Spatial Charts |
| How should cyclic or radial dimensions be compared? | Polar and Radar Charts |
| Which thresholds, events, or derived values need explanation? | Annotations and Overlays |
| How can a reader inspect, select, navigate, or edit the view? | Interactive Charts |
If two families seem plausible, use Choosing a Chart to compare the reader task, data shape, and risks of each encoding.
An example is a starting composition, not a schema for your data. Preserve your application rows and replace the example's channels, domains, labels, and formatters deliberately.
Before adapting a case:
Data and Channels defines the row-to-channel contract. Scales and D3 explains which transforms and scale semantics belong to the application. Transforms and Reactivity shows how raw observations become the rows consumed by marks.
Most examples are several small pieces sharing a coordinate system:
Read Grammar of Graphics for that model and Marks and Layering before replacing a composition with a custom mark.
For implementation details, use the API Reference. For behavior that crosses chart and application state, use the task-focused Guides.