Learn charts
A nine-chapter tutorial track for @pond-ts/charts — start here if you're
new to the library, not just looking something up (that's the
Overview and the Gallery).
Every chapter has at least one live chart embed — the code shown is the exact component mounted on the page, never a fragment you can't run yourself. Cursors and hover work from chapter 1 on; you're touching the interaction system before it's formally taught.
One running example threads the whole track: a small seeded server metrics series (cpu + latency per host, on a one-minute grid) — the same dataset chapter 1's chart renders is the one chapter 2 adds a second axis and a second row to.
- Your first chart — install, render, the four components every chart needs. Under 10 minutes to a working chart.
- Anatomy of a chart — a second axis, a
second row, the
Layersz-stack, and a caution about prop identity. - Feeding charts pond data — from "I
have an API response" to a rendered series:
fromJSON, temporal keys, what a draw layer actually reads. - Shaping data to chart — the
"make the most of pond" chapter:
aggregate,rolling,partitionBy, andbyColumn, each turning raw data into a chart-ready shape. - Styling and theming — the styling pipeline in one sentence, and which of three theming approaches fits your app.
- Reading and selecting values — the five
cursormodes, reading the hovered value outside the chart, and the select-to-zoom loop. - Marking up charts —
Region,Marker,Baseline, and a liveYAxisIndicatorpill — the annotation register, deliberately never the same hue as your data. - Live charts —
LiveSeries→useSnapshot→ chart, the re-render model, andcreateLiveValuefor a pill that skips the chart entirely. - Beyond the time axis — the x axis is inferred from your data: a linear value axis, a category axis, or a session-aware trading-time axis.
That's the whole track. A dedicated reference section for interaction and annotations (deeper than this track's tour) is on the roadmap — see PLAN.md's "Docs site wave" for what's shipped and what's next. Until then, the Cursors & readouts and Annotations Storybook groups cover that ground directly.