@grayhem/static-viz
v0.1.1
Published
Server-friendly static chart rendering for HTML snapshots, exports, and email surfaces.
Readme
@grayhem/static-viz
Server-friendly static chart rendering for HTML snapshots, exports, and email surfaces.
Node/SSR entrypoint
Use the stable server export to avoid dynamic import workarounds:
import { renderChartToHtml } from "@grayhem/static-viz/server";
const html = renderChartToHtml({
display: "line",
series,
settings: { showLegend: true },
width: 1200,
height: 320,
});Browser/shared entrypoint
import { renderChartToHtml } from "@grayhem/static-viz";Both entrypoints share the same RenderChartInput contract.
