Zero-dependency animated React charts for shadcn/ui

23 free, MIT-licensed charts and meters built straight on React 19, SVG/canvas math and Tailwind CSS v4—no Recharts, no D3, no Framer Motion. Scrub bars with an optical lens, drag alert thresholds, brush time ranges and install only the exact chart your dashboard needs via the shadcn CLI.

free MIT charts & meters
23
charting libraries required
0
zero extra npm packages
21/23
native shadcn CSS variables
Light + Dark

01Live previews

Scrub, drag and brush in place

Move your pointer across the bars, drag the threshold line up and down, or scrub the time range. Every chart below runs straight from the installed component source.

Lens bars — pointer proximity magnifies adjacent bars with spring interpolation and rolls the active readout.
Threshold line — drag the horizontal target rule directly on the plot to partition passing vs. breaching periods.
Range brush — drag either handle or slide the selection window to recalculate aggregates in real time.
Tick tape — high-density continuous telemetry strip with crisp hover inspection.

02All charts

All 23 charts, grouped by job

Click any chart for its live playground, props table, states and full copyable source.

Interactive analytical charts8

Direct-manipulation charts with optical scrubbing, draggable thresholds, brushes and live tick tapes.

  • Lens bars

    A whole year of days in one card, and a lens to read them: the bars under the pointer spread apart and widen, so any one day out of 365 is easy to land on.

  • Threshold line

    Set an alert by seeing what it would have done: drag a line across the last 30 days and every day over it turns red while the count of alerts rolls.

  • Compare bars

    This period, and with one press the one before: every bar splits in two, then what was gained turns green and what fell short shows in red.

  • Range brush

    Pick a stretch of days by holding it: a lit window over a year of hairlines that glides when thrown, stretches from either edge and settles on whole days.

  • Tick tape

    Events as they happen, one hairline each: as tall as its latency, bright when it lands and cooling as it travels, with errors in red. Point at it to hold it still and read one.

  • Pace

    A goal for the month and whether you will make it: the running total climbs toward a goal line, the rest of the month is drawn at this pace, and the verdict says when.

  • Pillar chart

    A period of activity as glass pillars on dark lacquer: point at one and it turns white, switch the range and the new pillars rise in a wave.

  • Morphing chart

    Bars, line and area as one set of marks: bars condense into beads, a thread is strung through them, the fill pours down. Drag the switch to scrub it.

Dashboard series & comparisons12

Clean SVG and canvas visualizations for SaaS revenue, activity, funnels, heatmaps and streaming telemetry.

  • Revenue chart

    This year as an area, last year behind it; point at a month and the header becomes the readout, switch the measure and the lines reshape.

  • Earnings chart

    A bar chart that changes instead of redrawing: bars glide between periods, the scale and the total roll, a readout follows the pointer.

  • Area chart

    Several series stacked, overlapping or as shares: every band morphs between layouts, and the tiles are the legend, the switches and the readout.

  • Trend chart

    One metric over time, the way an analytics screen needs it: the period before as a dashed line, an unfinished day drawn dashed, a readout that glides with the pointer, and drag to zoom.

  • Combo chart

    Every day as a bar and the trend as a line on one scale: point at a day and the header becomes its readout while the line’s dot pings where it lands.

  • Steps chart

    A week against a daily goal: days that make it fill in, a wave runs the way you step through the weeks, the totals roll.

  • Stage bars

    A funnel you can read at a glance: every stage as a bar against the first, the drop-off between them, and widths that ease when the period changes.

  • Donut chart

    Parts of a whole as a ring or a half-ring gauge: point at a slice and the centre rolls to it, hide one and the rest slide round.

  • Activity rings

    Three daily goals as concentric rings beside a tight legend, with the week underneath: pick a day and the rings sweep to it.

  • Activity heatmap

    Every day as a square, weeks across: one readout glides to the day you point at, and new numbers ripple through week by week.

  • Live line chart

    One metric as it happens: each point slides in at an even pace, the scale eases, and a Live pill pauses the view.

  • Sparkline

    An ultra-compact inline trendline with magnetic scrubber and auto-trend color for table cells and stat cards.

Compact meters & gauges3

High-signal inline visualizations for limits, budgets, progress and split balances.

  • Dot meter

    Several goals at once, each a small field of dots that pours in like grains: protein, carbs and fat, or seats, storage and API calls.

  • Balance meter

    What came in against what went out, and the net on a scale of hairline ticks whose needle swings and settles like a scale’s pointer.

  • Spending ring

    Where the money went, and what is inside it: thick tiles with their amounts on them, and a category that blooms open into a ring of its own.

Install one with the shadcn CLI

$ npx shadcn@latest add @hairline/lens-bars @hairline/range-brush

03Details

What most React dashboard charts get wrong

Small layout, typography and theming details that separate crisp product telemetry from default chart wrappers.

  • Common issue

    Shipping 150KB+ of Recharts or Chart.js for three dashboard cards

    How we handle it

    Most product screens need crisp SVG bars, area curves, donuts or sparklines—not a full GIS/plotting runtime. Direct SVG components install as readable source you can edit in seconds.

  • Common issue

    Tooltips that jump or clip off the edge on mobile

    How we handle it

    Keep readouts seated inside the chart header (rolling with tabular figures) or clamp pointer coordinates to the chart bounds so touching a bar on a 375px phone never overflows.

  • Common issue

    Numbers shifting horizontally while scrubbing

    How we handle it

    Always set tabular-nums on live values, axis ticks and percentages so scrubbing across data points feels rock solid instead of vibrating left and right.

  • Common issue

    Hardcoded light-mode hex colours inside SVG strokes

    How we handle it

    Read shadcn theme tokens (--foreground, --muted-foreground, --border, --chart-1..5) directly so every chart flips cleanly between light and dark mode with zero extra config.

04Questions

Before you install

Do these React charts require Recharts, Chart.js, D3 or Framer Motion?

No. None of these 23 charts install Recharts, Chart.js, D3 or any animation library. They are built directly with React 19, native SVG/canvas math, Tailwind CSS v4 and shadcn/ui CSS variables.

When should I still use Recharts or ECharts instead?

If you are building a BI tool with arbitrary user-defined pivots, 50,000-point scatter plots, zoomable geographic maps or dynamic multi-axis exports, a dedicated plotting engine like ECharts or Visx is the right tool. For product UI, SaaS dashboards and marketing benchmarks, lightweight owned SVG components are faster to customize and dramatically smaller.

Do they work with my existing shadcn/ui theme in light and dark mode?

Yes. Every chart reads standard shadcn CSS variables including --background, --foreground, --muted, --border and --chart-1 through --chart-5, so switching themes updates every bar, line and grid automatically.

How do I install one of these charts?

Run npx shadcn@latest add @hairline/<name>, for example npx shadcn@latest add @hairline/lens-bars. Every chart is free and MIT licensed for personal and commercial apps.

05Keep going

Need the full dashboard or landing page?

Browse our complete coded Next.js dashboard templates, build your own chart palette in the free shadcn theme generator, or explore all free React components.