npm.io
0.1.0-alpha.1 • Published 2d ago

@retikz/plot-vanilla

Licence
MIT
Version
0.1.0-alpha.1
Deps
3
Size
8 kB
Vulns
0
Weekly
212

@retikz/plot-vanilla

Framework-free bindings for @retikz/plot — the Tier 2 grammar-of-graphics layer of retikz.

renderPlot(spec, datasets, options?) lowers a data-free Plot IR (plus an externally-supplied dataset) to core IR and renders it to an SVG string via @retikz/vanilla's renderToSvgString — zero DOM, suitable for SSR / build-time generation.

Data never enters the IR — it is injected at compile time via lowerPlots.

See the retikz docs site for usage.

Keywords