Skip to content
ProData

Sparkline

A trend line that draws itself with a leading dot, a soft area fill and a live dot that pulses at the end; the cursor shows each point's value and a double-click redraws it.

Plan
Pro · commercial license
Dependencies
React only
Props
11 (9 adjustable)

Included in Pro and Lifetime. See pricing

Weekly visits
65349.8 %

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
datanumber[]"sample series"Values of the series (if you pass none, a sample series is used).
labelsstring[]"Sem 1, Sem 2…"Label for each value, shown on hover (one per value).
titlestring"Weekly visits"Title above the chart.
colorstring"#5eead4"Color of the line and the live dot.
heightnumber150Chart height, in px.
strokeWidthnumber2.5Line thickness, in px.
prefixstring""Text before the value (for example "$").
suffixstring""Text after the value (for example "%").
showHeaderbooleantrueShows the value and the change above the chart.
durationnumber1.8Seconds the line takes to draw.
replayEverynumber0Seconds between redraws of the line (0 keeps it still).

Installation

With your license

1Set up the Pro registry once

Pro components aren't on npm or in the public shadcn registry: you install them with your license from Furin's private registry.

Use my license

2Install Sparkline

npx shadcn@latest add @furin-pro/sparkline

Dependencies

React
18 or later
Other libraries
none
License
commercial

Pro components install into your project: the code is yours and there's nothing else to download.

Keep exploring

  • An analog gauge whose needle swings and settles on its value, with a printed dial and a red zone.

    Data

  • Bars that compete round after round: they grow on springs and the rows reorder whenever someone overtakes another.

    Data

  • A 52-week activity grid that fills in day by day with a color scale. Hover to see each day's date and count.

    Data