Skip to content

Ranked bars

Pro

Parts compared on one scale, largest first, with the rest in one row last; and a funnel's steps with each one's share of the step before. Not an M3 component (@windmorph/react-pro).

import { RankedBars, FunnelBars } from '@windmorph/react-pro/charts';

Part of Windmorph Pro, paid components on the free core, not on sale yet. See the Pro guide for what it includes and to register interest.

Playground

  • Paris, 1,204
  • Hamburg, 655
  • Lyon, 412
  • Everywhere else, 920

Code

import { RankedBars } from '@windmorph/react-pro/charts'; <RankedBars  aria-label="Orders by city"  rows={[    { key: 'lyon', label: 'Lyon', value: 412 },    { key: 'paris', label: 'Paris', value: 1204 },    { key: 'hamburg', label: 'Hamburg', value: 655 },    { key: 'rest', label: 'Everywhere else', value: 920, rest: true },  ]}/>

Examples

Largest first, with the rest last

A checkout funnel, each step's share of the one before

In a narrow column, names on a line of their own