ibcs-react
Components

VarianceAreaChart

An actual-vs-reference area chart - the gap is filled green where favorable and red where unfavorable.

The actual line runs over a grey reference; the band between them is filled with the impact colour, so favorable and unfavorable stretches read as shapes. The tail can be hatched as forecast.

When to use

Show a trend against a benchmark (average Ø, previous year, plan) where the running over/under-performance matters - favorable and unfavorable stretches read at a glance. Tiles well as small multiples.

Example

Profit vs location average (Ø)Ø+326.4%040608101214
Profit vs location average (Ø) - data table
ACØΔ
046647+19
054147-6
063847-9
076247+15
0812047+73
0921047+163
1028047+233
1131147+264
1234447+297
13 (FC)31147+264
14 (FC)31147+264
15 (FC)31147+264
Total variancen/an/a+1.8K (+326.4%)
import { VarianceAreaChart } from "ibcs-react";

<VarianceAreaChart
  title="Profit vs location average (Ø)"
  referenceLabel="Ø"
  forecastFrom={9} // index where the hatched FC tail begins
  data={[
    { category: "04", AC: 66, reference: 47 },
    { category: "08", AC: 120, reference: 47 },
    { category: "13", AC: 311, reference: 47, FC: 311 },
  ]}
/>;

The reference can be any benchmark - a location average, previous year, plan - as long as referenceLabel names it. For a cost measure set higherIsBetter={false} so the fill above the reference turns red.

Because a panel stays legible when small, this chart tiles well through SmallMultiples.

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