Shared interactive legend: aria-pressed toggle buttons with popping square, dot, line or dashed swatches, hidden-state strike-through, optional values and a hover channel that highlights a series in its chart.
pnpm dlx shadcn@latest add "https://goodui.dev/r/chart-legend.json"