Skip to content
silverpoint
Documentation menu

Concepts

Ink & precision

Every chart has two modes. ink (the default) draws by hand; precision switches the inking off entirely and draws exact, even strokes.

Side by side

mode="ink"mode="ink"
mode="ink"
xvalueprevious
Q14235
Q25844
Q35149
Q47360
mode="precision"mode="precision"
mode="precision"
xvalueprevious
Q14235
Q25844
Q35149
Q47360
tsx
<LineChart data={data} xKey="hour" valueKey="hits" title="Hits per hour" mode="precision" />

When to use it

  • Print, and dense dashboards where many small charts sit together.
  • Readers who prefer it: offer it as a setting.
  • Automatically: a chart switches to precision by itself under prefers-contrast: more or forced-colors: active. No prop overrides that.

The drawing is deterministic

The hand drawing never uses Math.random() or Date.now() on the render path. Its seed derives from id (or is given as seed), so the same props draw the same strokes on the server and in the browser, and a snapshot test stays stable.