Multi Line Chart With Legend

Unlimited

Several SVG lines draw in together; legend buttons toggle a series and the y-axis rescales while the remaining lines morph to fit.

chartlinelegendtogglesvg

Installation

Run the shadcn CLI in a project with Tailwind CSS. The component lands in components/pixelpapa/chart-line-multi-legend.tsx. This is an Unlimited component, so the CLI needs your API key: set it up once, then install it by name.

Build it with AI

Prefer to let an agent do the wiring? Copy this prompt, describe where the component should go, and paste.

More charts

All 9 charts →