Horizontal bar chart
Ranked bars with readable labels, the default for comparing items.
How concentrated a total is: sorted shares and the cumulative curve on one axis.
<ParetoChart />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 Pronpx chartslibraryui add pareto-chart --from ./chartslibraryui-proUsage 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 ProRows 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
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;
}Ranked bars with readable labels, the default for comparing items.
Many parts of one whole, sized by area and optionally grouped.