Observable Plot is a JavaScript library for charting tabular data with a concise layered grammar of graphics API built on D3 scales and marks. It targets fast exploratory analysis in browsers or Node.
Overview
Plot composes charts from marks such as bars, dots, and lines rather than fixed chart types, mapped through scales from data fields to visual channels like position and color. Transforms can bin, aggregate, or derive series while plotting without preprocessing entire datasets upfront.
Faceting repeats small multiples across data partitions, and geographic marks support GeoJSON with D3 spherical projections. The API stays compact so analysts can iterate visually with little boilerplate compared with lower-level D3.
Observable maintains Plot as open source alongside D3, with documentation, examples, and a changelog for releases. Observable’s hosted chart cell can generate Plot code graphically for teams using that platform.
The package is distributed for JavaScript ecosystems that already consume D3-based tooling.
Key features
- Layered marks and scales grammar
- Built on D3 projection and scale system
- Inline data transforms while plotting
- Facet small multiples
- GeoJSON map marks
- Concise chart specification API
- Browser and Node compatible module
Use cases
- Explore datasets interactively in notebooks
- Embed quick charts in Observable analyses
- Prototype dashboards with minimal chart code
- Render geographic summaries from GeoJSON