Skip to content
Menu

Charts

Themed chart frame

Themed chart frame: A reusable grouped bar chart frame that gives every series a consistent color, a styled floating tooltip, and a legend that dims other series on hover.

Using Themed chart frame

Themed chart frame 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
barGapnumber4From 0 to 16; step 1
cornerRadiusnumber4From 0 to 10; step 1
primaryColorcolor#2563EBNo additional limit in the metadata.
secondaryColorcolor#60A5FANo additional limit in the metadata.
showLegendbooleantrueNo additional limit in the metadata.
Which frameworks are available for Themed chart frame?

Themed chart frame 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 Themed chart frame depend on?

The React metadata lists these npm dependencies beyond React: motion, clsx, tailwind-merge.

What accessibility details are visible in Themed chart frame?

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

How does Themed chart frame handle reduced motion?

Themed chart frame reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: reduce ? false : { scaleY: 0 }. 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