Segmented Bar Chart
A production-scale, light + dark Segmented Bar Chart component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add segmented-bar-chartUsage
import { SegmentedBarChart } from "@lerpa/ui";
<SegmentedBarChart />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| segments | BarSegment[] | — | |
| title | string | — | |
| formatValue | (v: number) => string | — | |
| className | string | — | |
| height | number | — | |
| showLegend | boolean | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.