chartletv0.1.0-alpha.3

Overview

What chartlet does, what the alpha supports, and when another tool is the better choice.

chartlet compiles a small JSON chart specification into a finished, accessible chart at build time: plain SVG, or an HTML figure with caption, source and data table. Nothing runs in the browser – no chart JavaScript, no hydration, no layout shift.

Status: early alpha. Bar charts (single and grouped, vertical and horizontal) and categorical line charts are supported. The specification may still change before the first stable release.

Principles

  • Accessible by default: every chart carries a title and a generated description of the data, and the HTML output always includes the complete data as a table.
  • Deterministic: the same specification produces the same bytes, so charts can be reviewed, diffed and cached like any other build artifact.
  • Honest about problems: invalid input is rejected with a code, a path and a fix; layout compromises such as shortened labels are reported as warnings instead of happening silently.

When chartlet is not the right tool

  • You need continuous zooming, panning, cross-filtering, live updates or keyboard-addressable details for individual marks.
  • The data changes at runtime rather than at build time.
  • You need maps, networks, 3D charts or chart types beyond bar and line.
  • You want to explore data rather than publish a finished chart.

How the docs are organised

Every chart in the showcase is rendered by chartlet during the site build.

Edit this page on GitHub · Docs for v0.1.0-alpha.3