Skip to content

shadcn.io is an independent project built on shadcn/ui

Sparkline with a Range Toggle

Switching between 7, 30 and 90 days morphs the line to the new data instead of redrawing it. This is the Solid version, drawn with TanStack Charts.

Charting library: TanStack Charts

Preview

Preview width

Installation

Sign in to get your install command
Free with an account. It carries your token, so the CLI installs everything in one go.
Use email insteadNo credit card

Usage

import { ChartSparklineRange } from "@/components/charts/chart-sparkline-range";
<ChartSparklineRange />