Skip to content

Line chart

Trending. Sales and profit by month as two plain lines, the legend below, with a period switch that redraws them on the same scale.

Library
What’s this?
Sales and profit by month
This year, USD

Installation

Line chart is drawn with the Chart component. Add it, then copy the code from the Code tab above.

pnpm dlx shadcn@latest add @wisty/chart

The CLI installs the Radix or Base UI file to match your project.

Other chart types

Chart: the API, colors and rules for every type