Preview Updated 2026-05-10

ParetoChart

Descending bars + cumulative-percent line + 80/20 reference — the ABC-analysis staple for ops / quality / support teams to spot the "vital few" causes.

Basic usage

Pass items: { label, value }[]. The component sorts by value descending, computes the cumulative percentage, and draws the cutoff reference line (default 80%). Hover any bar or line dot to see the value and cumulative percentage.

背景 视口

API

PropTypeDefaultDescription
items{ label, value, color? }[]Data (sorted internally)
heightnumber260Pixel height
cutoffnumber0.8Reference line position (0–1)
barColorstringaccentDefault bar color
lineColorstringwarningCumulative line color
formatValue(v) => stringLeft axis / bar value formatter
ariaLabelstringSR label
size'sm' | 'md' | 'lg''md'Font size scale

Events:

  • Vue: @hover / @select
  • React: onHover / onSelect

Payload: { index, item, cumulative, cumulativePct }.

反馈与讨论

ParetoChart · Discussion

0
0 / 600
正在加载评论...