# Line chart

Smooth, stepped, dashed, glowing, and brushable line charts.

> 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-line-chart">
  <div className="h-[430px] w-full rounded-xl border">
    <ChartcnExampleLineChart />
  </div>
</ComponentPreview>

## Install [#install]

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

Curve and stroke props compile to native ECharts `smooth`, `step`, and `lineStyle` options. Nested `Dot` and `ActiveDot` descriptors enable point symbols and emphasis.
