Data

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.

Sessions by channel
  • Search4,250
  • Direct3,180
  • Referral1,260

API

Key props and defaults.

PropValues and behaviorDefault
datareadonly T[]—
titlestring—
label / value(datum: T) => string / number—
maxValuenumberlargest valid value
valueFormat(value: number) => string—
tonesemantic tone or (datum: T) => toneprimary