BarList
Compare category values with proportional bars and readable numbers.
Basic usage
Items keep their input order. Return a finite nonnegative number from value. To compare multiple lists, give each the same maxValue.
API
Key props and defaults.
| Prop | Values and behavior | Default |
|---|---|---|
data | readonly T[] | — |
title | string | — |
label / value | (datum: T) => string / number | — |
maxValue | number | largest valid value |
valueFormat | (value: number) => string | — |
tone | semantic tone or (datum: T) => tone | primary |