Skip to content
ChartslibraryUI Get Pro

Pareto chart

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

When to use

  • Ticket causes, defect types, revenue concentration
  • Deciding what to fix first

When not to use

  • Categories have a natural order – use Bar chart

Good practice

  • Pin "Other" last with pinLast.
  • The threshold is a convention, not a law; say why you use 80%.

Installation

Pareto chart is a Pro chart.

Installation is part of Pro

The full source is included in the Pro download. Get Pro to install it with the CLI and use it in unlimited projects.

Unlock with Pro
Already have Pro?npx chartslibraryui add pareto-chart --from ./chartslibraryui-pro

Usage

Usage examples are part of Pro

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

Unlock with Pro

Data

Rows with a category key and a non-negative value key.

[{ cause: "Login & SSO", tickets: 1240 }, ...]

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 ParetoChartProps extends FrameProps {
  data: Row[];
  /** Key of the category. */
  x: string;
  /** Key of the count or amount. Must be zero or positive. */
  y: string;
  format?: FormatInput;
  /** Cumulative share to mark. Default 0.8. */
  threshold?: number;
  /** Keep a category (e.g. "Other") last regardless of size. */
  pinLast?: string;
}

Treemap

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