ibcs-react
Components

TreeChart

The IBCS tree chart (template C11) - a calculation tree of related measures, e.g. Return on assets = Return ÷ Assets.

Nodes carry a value, an optional prior-year value and the operator that binds their children (+, -, *, /), so the arithmetic of a derived KPI is on the page next to its result.

When to use

Show how a derived KPI decomposes into its drivers, each with its value and Δ vs prior year.

Example

÷−Return on assets0+0 vs PYReturn31M+2.6M vs PYNet sales240M+8M vs PYTotal cost209M+5.4M vs PYAssets250M+9.3M vs PY
Calculation tree data table
ValuePYΔPY
Return on assets00+0
· Return31M28.4M+2.6M
· · Net sales240M232M+8M
· · Total cost209M203.6M+5.4M
· Assets250M240.7M+9.3M
import { TreeChart } from "ibcs-react";

<TreeChart
  root={{
    id: "roa",
    label: "Return on assets",
    value: 0.124,
    py: 0.118,
    op: "/",
    format: { decimals: 3 },
    children: [
      { id: "ret", label: "Return", value: 31e6, py: 28.4e6 },
      { id: "assets", label: "Assets", value: 250e6, py: 240.7e6 },
    ],
  }}
/>;

Each node can override format, which matters when a ratio and its currency-valued drivers share one tree. Supply py per node and the impact colouring shows which driver moved the headline; showVariance={false} turns the deltas off.

For the same decomposition with a mini time series per node, use RatioTreeChart.

Props

Prop

Type

ibcs-react is an independent open-source library and is not affiliated with, certified by, or endorsed by the IBCS Association or ISO. It follows the IBCS® notation rules (the basis of ISO 24896); IBCS® is a registered trademark of the IBCS Association.

On this page