Skip to content
Menu

Charts

Series Switch Trend

Series Switch Trend: A ninety-day trend line with two total tiles in the header; picking a tile morphs the line to that series and tweens the stroke to its accent.

Using Series Switch Trend

Series Switch Trend 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
primaryColorcolor#38BDF8No additional limit in the metadata.
secondaryColorcolor#FF6A1FNo additional limit in the metadata.
daysnumber90From 30 to 120; step 10
strokeWidthnumber2From 1 to 4; step 0.5
showGridbooleantrueNo additional limit in the metadata.
Which frameworks are available for Series Switch Trend?

Series Switch Trend 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 Series Switch Trend depend on?

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

What accessibility details are visible in Series Switch Trend?

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

How does Series Switch Trend handle reduced motion?

Series Switch Trend 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