# ECharts

> A themeable Apache ECharts wrapper that draws a chart from a plain option object, auto-colors it from your design tokens and theme changes, formats numbers/dates in the current locale, keeps the legend and zoom slider clear of the axes, and supports keyboard navigation. Ported to React from zweiundeins/starbase's `<sb-echarts>` web component (MIT), itself ported from Libretto's `<tco-chart>`.

- Author: [zweiundeins](https://21st.dev/@zweiundeins)
- Library: zweiundeins
- License: MIT
- Tags: Chart, Data Visualization, Dashboard
- Live preview: https://21st.dev/@zweiundeins/components/echarts

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/zweiundeins/echarts?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/chart.md
