# Grouped bar comparison

> An accessible grouped bar chart comparing previous vs current period performance with interactive segment selection, dynamic metric readouts, and an expandable data table. It is useful in business intelligence dashboards, campaign marketing reports, and quarterly performance reviews to clearly contrast growth metrics across acquisition channels.

- Author: [Waqar H. Syed](https://21st.dev/@ibrandify)
- Library: ibrandify UI
- License: mit
- Tags: Chart, Bar Chart, Comparison, Analytics, Data Visualization
- Live preview: https://21st.dev/@ibrandify/components/grouped-bar-comparison

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/ibrandify/grouped-bar-comparison?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/chart.md
