Skip to content

Bar chart

Pro

Columns over places: one series, or several stacked into a total, read by pointer, finger and keyboard. Not an M3 component (@windmorph/react-pro).

import { BarChart, ChartLegend, ChartTooltip } 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

Code

import { BarChart } from '@windmorph/react-pro/charts'; <BarChart  aria-label="Orders by channel"  places={[    { key: '2026-06-01', tick: '1 Jun', name: 'Week of 1 June' },    { key: '2026-06-08', tick: '8 Jun', name: 'Week of 8 June' },    { key: '2026-06-15', tick: '15 Jun', name: 'Week of 15 June' },    { key: '2026-06-22', tick: '22 Jun', name: 'Week of 22 June' },  ]}  series={[    { key: 'web', label: 'Web', values: [312, 334, 351, 340] },    { key: 'phone', label: 'Phone', values: [146, 139, 152, 160] },    { key: 'store', label: 'In store', values: [88, 95, 102, 97] },  ]}/>

Examples

Orders by channel, over 6 or 12 weeks

Money in and out, below nought

One legend for two charts