Atelier UI

Search components…

Search components…

Line Chart

Responsive multi-series SVG line and area chart with smooth curves, hover crosshair tooltip, legend toggles and draw-in animation.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

LineChartProps

Also accepts all props of Omit<React.ComponentProps<"div">, "children">

PropTypeDefaultDescription
labels* requiredstring[]—X axis labels, one per data point
series* requiredLineChartSeries[]——
heightnumber280Plot height in px
curve"monotone" | "linear""monotone"—
areabooleantrueFill the area under each line
titlestring"Line chart"Accessible title used in the summary
valuePrefixstring""—
valueSuffixstring""—

Install

$ npx shadcn@latest add https://chromotion.dev/r/line-chart.json

More like this