Skip to content
GaudiGaudi Design System home

Search documentation

Search every page, heading and paragraph.

StackedBarList

Ranked rows of stacked segments that grow with the list: issues by status per team, readers by source per post.

Charts@gaudi/design-system/charts/StackedBarListView in StorybookSource

Installation

pnpm add github:ahmadassaf/design-system recharts

Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.

import { StackedBarList } from '@gaudi/design-system/charts/StackedBarList';

Copy an example into your project with the shadcn CLI: npx shadcn@latest add https://design.gaudi.site/r/stacked-bar-list-top-posts.json.

Usage

import { StackedBarList } from '@gaudi/design-system/charts';
<StackedBarList ariaLabel='Issues per team by status' data={teams} series={[{ key: 'open', label: 'Open' }, { key: 'done', label: 'Done' }]} />

Examples

Top posts by source

Storybook

API

20 props

Accessibility

The plot is one tab stop named by ariaLabel. The arrow keys walk the points, Home and End jump to the ends, Enter or Space activates and Escape clears; the active point is drawn and read out politely. Every value is mirrored in a data table, and the SVG is hidden from assistive technology.