# Highlighted bar chart

https://fieldbook.lizardi.mx/components/highlighted-bar-chart

Category: Charts
![Still of the Highlighted bar chart component, a Fieldbook UI component in Charts.](https://fieldbook.lizardi.mx/thumbs/highlighted-bar-chart.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/highlighted-bar-chart-69aa0ed400.mp4 (5 s, silent)

Highlighted bar chart: A category bar chart where one bar is called out with a dashed outline and a lighter fill, and the callout follows whichever bar you point at.

## Frameworks

react, vue, svelte, astro, html

## Preview controls

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

| Name | Type | Default | Options or constraints |
| --- | --- | --- | --- |
| accentColor | color | #FF6A1F | No additional limit in the metadata. |
| activeIndex | number | 1 | From 0 to 4; step 1 |
| barRadius | number | 8 | From 0 to 16; step 1 |
| showValues | boolean | false | No additional limit in the metadata. |
| animate | boolean | true | No additional limit in the metadata. |

## Usage notes

Highlighted bar chart uses the wide preview frame with a light/dark theme setting.

### Which frameworks are available for Highlighted bar chart?

Highlighted bar chart is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

### What does Highlighted bar chart depend on?

The React metadata lists these npm dependencies beyond React: motion.

### What accessibility details are visible in Highlighted bar chart?

The React source for Highlighted bar chart includes: native elements (button); attributes and handlers (aria-hidden, aria-label, aria-pressed, onKeyDown); key comparisons (ArrowLeft, ArrowRight). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

### How does Highlighted bar chart handle reduced motion?

Highlighted bar chart reads the motion preference in its React source through useReducedMotion(). Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

## Install through MCP

Connect your client, call get_component to retrieve the implementation, then get_install_command for installation instructions. Choose a listed framework, integrate the returned source and verify it in your application.

```json
{
  "tool": "get_component",
  "arguments": {
    "slug": "highlighted-bar-chart",
    "framework": "react"
  }
}
```

[For agents](https://fieldbook.lizardi.mx/docs/agents)
[MCP](https://fieldbook.lizardi.mx/api/mcp)

## Related open components

- [Forecast tail line](https://fieldbook.lizardi.mx/components/forecast-tail-line)
- [Inline labeled bar chart](https://fieldbook.lizardi.mx/components/inline-labeled-bar-chart)
- [Metric switch bar chart](https://fieldbook.lizardi.mx/components/metric-switch-bar-chart)
- [Named point line](https://fieldbook.lizardi.mx/components/named-point-line)
- [Paired bar chart](https://fieldbook.lizardi.mx/components/paired-bar-chart)
- [Signed value bar chart](https://fieldbook.lizardi.mx/components/signed-value-bar-chart)
