# Bar Chart

> A Cadence Steps activity card — slim raspberry range bars with marker dots, segmented Day/Week/Month tabs with a springing slider, an animated min–max readout, a dashed average line, a compact value axis, hover tooltips, a context menu, and a skeleton loading state — fully token-driven.

- Category: Chart
- Frameworks: Vanilla, React + CSS, React + Tailwind
- Design system: Atlas
- Dark mode: yes
- Access: premium (Atheros AI Pass)
- Tags: interactive, tooltip, bar-chart, activity, dark-mode, responsive, visualization
- Page: https://builder.atheros.ai/components/bar-chart
- Preview: https://d17nmjscumqk5d.cloudfront.net/builder/templates/tpl_builder_bar_chart/preview-8aafec52b31b.webp

## Features

- Segmented Day/Week/Month control with a spring-animated slider indicator
- Slim width-capped range bars with per-bar marker dots and a staggered springy scaleY entrance
- Animated min–max stat headline in tabular numerals that counts up whenever the dataset changes
- Dashed average line at the dataset mean with an uppercase compact label
- Right-hand value axis with 0 / mid / max ticks in compact k-format, aligned to the gridlines
- Hover tooltip with exact value and label; sibling bars dim while one is hovered
- Today's bar is emphasized with a stronger accent fill and a primary-colored label
- Context menu on the header dots button and on bar right-click, with full keyboard navigation
- Skeleton loading state with shimmer shown before the first render
- Visually-hidden data table mirrors the chart for screen readers
- Reduced-motion support shows the final chart state instantly

## Accessibility

- **Tabs** — `role="tablist"` with `role="tab"`, `aria-selected`, and `aria-label` per tab
- **Chart region** — `.cht-bars` uses `role="img"` with a descriptive `aria-label`
- **Axis and average** — `aria-hidden` decorations — the hidden table carries the data
- **Bars** — Each bar is focusable with an `aria-label` of label and value
- **Context menu** — `role="menu"`/`role="menuitem"` with arrow-key, Home/End, and Escape handling
- **Data table** — Visually-hidden `<table>` mirrors the chart data for screen readers
- **Focus indicators** — `:focus-visible` outline using the `--ring` token
- **Reduced motion** — `prefers-reduced-motion: reduce` disables all animations

## Keyboard shortcuts

- `Enter / Space` — Activate the focused tab, bar, or menu item
- `Arrow Up / Arrow Down` — Move focus between context-menu items
- `Home / End` — Jump to the first or last context-menu item
- `Escape` — Close the open context menu

## Common questions

**Which frameworks is Bar Chart available in?**

Bar Chart ships as Vanilla, React + CSS and React + Tailwind — HTML, CSS, JS and React source you can copy, download or clone into Atheros AI Builder.

**Is Bar Chart free?**

Bar Chart is a premium component. Anyone can preview it; the source, downloads and AI customisation are included with Atheros AI Pass.

**Does Bar Chart support dark mode?**

Yes. Bar Chart ships light and dark themes, both drawn from the Atlas design system's tokens. Switch the preview to dark mode to compare them.

## Get the code

Preview Bar Chart live, then sign in to copy or download the source, apply another design system, or ask the AI assistant to change it: https://builder.atheros.ai/components/bar-chart

Every component on https://builder.atheros.ai is also reachable from Claude Code, Cursor and Codex through the Atheros MCP server (paid plans). Component index: https://builder.atheros.ai/llms-components.txt
