# Series Switch Trend

https://fieldbook.lizardi.mx/components/series-switch-trend

Category: Charts
![Still of the Series Switch Trend component, a Fieldbook UI component in Charts.](https://fieldbook.lizardi.mx/thumbs/series-switch-trend.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/series-switch-trend-4cd41267ca.mp4 (5 s, silent)

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.

## 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 |
| --- | --- | --- | --- |
| primaryColor | color | #38BDF8 | No additional limit in the metadata. |
| secondaryColor | color | #FF6A1F | No additional limit in the metadata. |
| days | number | 90 | From 30 to 120; step 10 |
| strokeWidth | number | 2 | From 1 to 4; step 0.5 |
| showGrid | boolean | true | No additional limit in the metadata. |

## Usage notes

Series Switch Trend uses the wide preview frame with a light/dark theme setting.

### 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.

## 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": "series-switch-trend",
    "framework": "react"
  }
}
```

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

## Related open components

- [Plain trend line](https://fieldbook.lizardi.mx/components/plain-trend-line)
- [Wiping multi series line](https://fieldbook.lizardi.mx/components/wiping-multi-series-line)
- [Forecast tail line](https://fieldbook.lizardi.mx/components/forecast-tail-line)
- [Gridline area chart](https://fieldbook.lizardi.mx/components/gridline-area-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)
