ibcs-react
Components

RankingVarianceChart

A sorted horizontal variance chart - AC bars with a plan overlay, a ΔPL bar panel and a ΔPL% pin panel.

Rows sorted by deviation: AC bars with the comparison overlaid, then the absolute variance as bars, then the relative variance as pins - with a bold total row underneath.

When to use

Rank entities (regions, states, products) by their variance vs plan - see who beats and who misses, with absolute and relative deviation side by side and a bold total.

Example

Net sales by state - AC vs PlanACΔPLΔPL%CaliforniaCalifornia+34+22.1%188OhioOhio+31+31.0%131New YorkNew York+10+5.0%211NevadaNevada+5+27.8%23MarylandMaryland+2+1.6%125TexasTexas-4-2.0%197New JerseyNew Jersey-31-28.4%78VirginiaVirginia-97-58.4%69Total1K-50-4.7%
Net sales by state - AC vs Plan - data table
ACPLΔPLΔPL%
California188154+34+22.1%
Ohio131100+31+31.0%
New York211201+10+5.0%
Nevada2318+5+27.8%
Maryland125123+2+1.6%
Texas197201-4-2.0%
New Jersey78109-31-28.4%
Virginia69166-97-58.4%
Total1K1.1K-50-4.7%
import { RankingVarianceChart } from "ibcs-react";

<RankingVarianceChart
  title="Net sales by state - AC vs Plan"
  baseLabel="PL"
  sortBy="variance" // "variance" | "value" | "none"
  data={[
    { label: "California", AC: 188, base: 154 },
    { label: "Texas", AC: 197, base: 201 },
    { label: "Virginia", AC: 69, base: 166 },
  ]}
/>;

The relative panel is the reason small bases stay honest: a tiny entity can double while contributing almost nothing in absolute terms. Percentages beyond clampPct draw an off-scale arrow instead of stretching the whole scale for one outlier.

baseLabel is what the headers say - set it to "PY" when the base values are last year's.

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