ibcs-react
Components

VarianceColumnChart

A variance column chart - AC vs a comparison as overlapped columns (or pins), with an absolute/relative variance panel beneath.

The workhorse period comparison: solid AC columns over the comparison scenario's own notation (PY solid grey, PL hollow frame, FC hatched), with an absolute or percent variance panel underneath.

When to use

Comparison / deviation across a few categories or periods - e.g. revenue by quarter, AC vs PY.

Example

Net sales - AC vs PY, mEUR30Jan27Feb32Mar30Apr33May+2-2+3-1+3
Net sales - AC vs PY, mEUR - data table
ACPYΔPYΔPY%
Jan3029+2+5.2%
Feb2729-2-5.2%
Mar3229+3+9.5%
Apr3030-1-2.0%
May3330+3+10.0%
import { VarianceColumnChart } from "ibcs-react";

<VarianceColumnChart
  data={[
    { category: "Jan", AC: 30.1, PY: 28.6 },
    { category: "Feb", AC: 27.4, PY: 28.9 },
  ]}
  comparison="PY"
  variance="abs" // or "pct" / "none"
  mark="bar" // or "pin"
  width={620}
  height={320}
/>;

More examples

Relative variance as pins

Switch the lower panel to percent and the marks to pins - Q4 is well ahead of last year, which the percent variance makes explicit.

6.8MQ17.3MQ27.6MQ38.4MQ4+11.5%+14.1%+13.4%+31.3%
AC versus PY - data table
ACPYΔPYΔPY%
Q16.8M6.1M+700K+11.5%
Q27.3M6.4M+900K+14.1%
Q37.6M6.7M+900K+13.4%
Q48.4M6.4M+2M+31.3%
<VarianceColumnChart data={quarterly} comparison="PY" variance="pct" mark="pin" />

Compare against plan (PL)

Point the variance at a different base - here actuals vs plan instead of prior year.

6.8MQ17.3MQ27.6MQ38.4MQ4+300K+300K+200K+800K
AC versus PL - data table
ACPLΔPLΔPL%
Q16.8M6.5M+300K+4.6%
Q27.3M7M+300K+4.3%
Q37.6M7.4M+200K+2.7%
Q48.4M7.6M+800K+10.5%
<VarianceColumnChart data={quarterly} comparison="PL" />

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