Klar

Charts / React BI charts / Relationship

Quadrant matrix

Items on two measures split into four labelled zones, with bubbles sized by a third, trails from the prior period and each zone’s count and share in its corner.

React component QuadrantMatrix, data through props. How variables move together: correlation, density and many dimensions at once. Tags: quadrant, bcg, growth-share, effort-impact, portfolio, bubble, prioritisation, matrix.

Install

npm i klar-charts

import 'klar-charts/styles.css'
import { ThemeScope, QuadrantMatrix } from 'klar-charts'

# or copy the source:
npx shadcn@latest add https://klar.run/r/bi-quadrant.json

Usage

<QuadrantMatrix
  data={initiatives}
  categories={initiativeTeams}
  zones={effortImpact}
  xLabel="Effort, person-weeks"
  yLabel="Impact, €k a year"
  sizeLabel="Reach"
  xFormat={(v) => `${+v.toFixed(1)}`}
  yFormat={(v) => (v >= 1000 ? `€${+(v / 1000).toFixed(2)}M` : `€${Math.round(v)}k`)}
  sizeFormat={(v) => `${v}k accounts`}
  height={540}
/>

Related quadrant matrix charts