@appswyldesolutions/vcv-core
v1.0.0
Published
Value chain KPI logic for the Value Chain Visualiser: row ingestion, on-target evaluation and the grouped model. No DOM, no framework.
Readme
@appswyldesolutions/vcv-core
The KPI logic behind the Value Chain Visualiser, with no DOM and no framework:
read KPI rows (fromLongRows, fromWideRecords), evaluate them against
budget (evaluate, formatValues) and group them into the value chain
model for a year and period (buildModel).
npm install @appswyldesolutions/vcv-coreIt is public on npm: no token, .npmrc or registry setup.
import { buildModel, fromLongRows } from "@appswyldesolutions/vcv-core";
const model = buildModel(fromLongRows(records), { year: 2026, period: "July" });Equal: actual >= budget is on target.LessThan: actual <= budget is on target.- A sphere's fill is
clamp(actual / budget, 0, 1).
To draw the visual, use @appswyldesolutions/vcv-web-component or @appswyldesolutions/vcv-react. Specs: docs/specs.
MIT licensed.
