# Composed chart

Bars and lines sharing one ECharts Cartesian coordinate system.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).





<ComponentPreview name="ex-composed-chart">
  <div className="h-[430px] w-full rounded-xl border">
    <ChartcnExampleComposedChart />
  </div>
</ComponentPreview>

## Install [#install]

```bash
npx shadcn@latest add @chartcn/composed-chart
```

Compose any number of `Bar` and `Line` descriptors. They share axes, legend selection, tooltip focus, data zoom, and the same responsive ECharts instance.
