Channel chart
How a total splits across channels: a stacked bar and a legend row per channel.
Revenue by channel
Oct 26 – Nov 1, 2026
- Dine-in€29,430
- Delivery apps€9,650
- Takeaway€5,790
- Catering€2,420
- Gift cards€970
Installation
npm i @uisatin/uiimport { ChannelCard } from '@uisatin/ui/channel-chart'About 49.9 kB of JavaScript, minified and gzipped, with what it imports (React aside). The stylesheet is one file for every component.
npx shadcn@latest add https://uisatin.dev/r/channel-chart.jsonAdds channel-chart.tsx, badge.tsx, chart.tsx, dropdown.tsx, floating.tsx, form-field.tsx, kbd.tsx, labels.tsx, pointer-modality.tsx and select.tsx to components/ui.
First time with Satin? Set it up once, styles and fonts included, with the installation guide.
API Reference
The ChannelCard component is a wrapper around the div element with a title, a range, an optional period Select, the KPI and the stacked bar.
| Prop | Type | Default |
|---|---|---|
title | string | — |
range | string | — |
data | ChartDatum[] | — |
periods | string[]string[][] | — |
value | string | — |
onPeriodChange | (period) => void | — |
total | string | — |
change | string | — |
formatValue | (value) => string | — |
highlight | number | — |
Accessibility
The card is role="figure" labelled by its title. The stacked bar is hidden; the legend is a list named after the title, and each row is a tab stop named "label: value, share%". Focusing a row brings its channel forward. With periods, the Select in the header is named "Period".
| Key | Action |
|---|---|
| TaborShift+Tab | Moves from channel to channel in the legend. |
Something wrong or missing on this page?
Report a problemSuggest an improvement