@gemologic/sheen-charts
v0.4.3
Published
Accessible SVG and canvas chart components for the Sheen SolidJS design system.
Readme
@gemologic/sheen-charts
Accessible SVG and canvas chart components for Sheen SolidJS applications. Time columns use increasing UTC epoch milliseconds, NaN renders a visible gap, and theme refresh redraws retained canvases without remounting.
Install
pnpm add @gemologic/sheen-charts @gemologic/sheen @gemologic/sheen-tokens solid-jsLoad @gemologic/sheen-charts/styles.css after the token and base UI styles.
Use
Use Sparkline and Stat from ./svg, accessible line/area/bar charts from ./charts-svg, and the canvas TimeSeries from ./time-series. Streaming helpers live in ./streaming; importing an SVG-only entry does not retain uPlot.
Every visual chart exposes a native data-table alternative. Time columns are strictly increasing UTC epoch milliseconds in Float64Array; timezone changes formatting only. NaN breaks lines and area fills, while undefined is rejected. Canvas charts redraw from the shared token bridge and retain their DOM owner during theme changes and accepted refreshes.
See the chart data contract, display guide, and streaming policy.
