Klar

Charts / React BI charts / Part-to-whole

Pareto chart

Causes sorted largest first with the cumulative share on a second axis, shading the vital few that account for 80% of the problem.

React component ParetoChart, data through props. How a total splits into its pieces. Tags: pareto, 80-20, cumulative, bars, quality, root-cause.

Install

npm i klar-charts

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

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

Usage

<ParetoChart data={checkoutFailures} threshold={+t / 100} height={404} unit="failures" />

Related pareto charts