@appswyldesolutions/vcv-renderer
v2.0.0
Published
Vanilla DOM/SVG/CSS renderer for the Value Chain Visualiser: glass cards, spheres, connectors and controls drawn from the core model.
Maintainers
Readme
@appswyldesolutions/vcv-renderer
Draws the Value Chain Visualiser with vanilla DOM, SVG and CSS: the glass cards, spheres, connectors and header controls, from KPI rows and a theme. No framework.
npm install @appswyldesolutions/vcv-rendererIt is public on npm: no token, .npmrc or registry setup. It installs
@appswyldesolutions/vcv-core with it.
import { createVisual } from "@appswyldesolutions/vcv-renderer";
const visual = createVisual(document.querySelector("#chain")!, {
rows,
theme: { fillColor: "#2f9e44", shortfallColor: "#e03131" },
onSelect: (kpi) => console.log(kpi.metric),
});Most apps want @appswyldesolutions/vcv-web-component (one element, data from a URL) or @appswyldesolutions/vcv-react instead. Specs: docs/specs/renderer.md.
MIT licensed. The embedded DM Sans and Bricolage Grotesque fonts are under
the SIL Open Font License; see licenses/.
