Skip to content
Menu

Charts

Highlighted bar chart

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.

Using Highlighted bar chart

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

Customize the preview

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

ControlTypeDefaultPreview limits
accentColorcolor#FF6A1FNo additional limit in the metadata.
activeIndexnumber1From 0 to 4; step 1
barRadiusnumber8From 0 to 16; step 1
showValuesbooleanfalseNo additional limit in the metadata.
animatebooleantrueNo additional limit in the metadata.
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.

Connect your agent

Related open components