Skip to content
ChartslibraryUI
Get Pro

React concentration curve

How dependent a total is on its biggest items: top 10% of customers = X% of revenue, with Gini.

Get Pro to install · $79 once<ConcentrationCurve />

A concentration curve shows how much of a total depends on its biggest items. Items are sorted from largest to smallest; the curve plots the cumulative share of items against the cumulative share of the total. If every customer paid the same, the curve would follow the diagonal. The further it bulges above, the more you depend on a few accounts.

Call-outs read the curve for you: top 10% of customers bring in a given share of revenue, top 20% another. The Gini coefficient sums it up in one number, from 0 (every item equal) to 1 (one item has everything). It is the Lorenz curve that economists use, drawn largest first because that is the question businesses ask. Negative and missing values are left out with a note; the table ranks every item with its share and cumulative share.

Investors and lenders ask about customer concentration in every review. For a short list of causes or categories, use a Pareto chart instead.

When to use

  • Customer revenue concentration for investors and lenders
  • Product or SKU concentration of sales
  • Usage or support load concentrated in a few accounts

When not to use

Good practice

  • Call out the shares people ask about (top 10%, top 20%).
  • Say how many items there are in the subtitle.
  • Track it over time with the same marks to see dependence grow or shrink.

Installation

Concentration curve is a Pro chart.

Installation is part of Pro

Get Pro to install it with your access key and the shadcn CLI, and use it in unlimited projects.

Unlock with Pro

Usage

Usage examples are part of Pro

Every example on this page comes with its code in Pro. The props and data shape below are public.

Unlock with Pro

Data

One row per item with a label key and a non-negative numeric value key; the chart sorts them.

[{ customer: "Account 001", arr: 48200 }, ...]

Missing values are null. Invalid values make the chart say what’s wrong instead of drawing a misleading picture. How charts handle bad data

Props

Every chart also accepts the shared frame props: title, subtitle, source, height, mode, toolbar. Common API

export interface ConcentrationCurveProps extends FrameProps {
  /** Rows to draw, one per item (customer, product, account). See the Data section for the shape. */
  data: Row[];
  /** Key of the item name. */
  label: string;
  /** Key of the item's value (revenue, usage, tickets). */
  value: string;
  /** Shares of items to call out, e.g. [0.1, 0.2] for "top 10%" and "top 20%". Default [0.1, 0.2]. */
  marks?: number[];
  /** Show the Gini coefficient (0 = every item equal, 1 = one item has everything). Default true. */
  gini?: boolean;
  /** What the items are, used in labels. Default "items". */
  itemLabel?: string;
  /** What the value is, used in labels. Default "value". */
  valueLabel?: string;
  /** Number format for values in the tooltip and table. */
  format?: FormatInput;
}
Pro

Pareto chart

How concentrated a total is: sorted shares and the cumulative curve on one axis.

Treemap

Many parts of one whole, sized by area and optionally grouped.

Histogram

The shape of one distribution, with automatic binning and a median marker.

Sign in to ChartslibraryUI

New here? The same step creates your account.

Continue with Google
or

No password needed. Bought Pro? Use the email you paid with and your license is there. By signing in you agree to the Terms and Privacy policy.