Skip to content

React chart components

Free React chart components with no chart library: area, line, bar, stacked, donut, gauge, radar, funnel, treemap and sankey charts with legends and dark mode.

22 itemsFree, MITshadcn CLI compatibleTailwind CSS v4Light and dark

Every chart here renders straight from a plain data array, with no charting library underneath. AreaChart, BarChart and LineChart have no dependencies at all; PieChart uses Motion for its hover animation. Colours come from the theme tokens, so charts change with light, dark and your accent, and most give screen readers a text summary or a hidden data table.

Pick by the question the chart answers. A trend over time is an area or line chart. One value per period is a bar chart. Parts of a whole are a pie, donut, stacked bar or waffle chart. A ranking with long labels is a horizontal bar chart, and flow between stages is a funnel or sankey. Wrap any of them in ChartCard so every chart on a dashboard shares one header.

Which one should I use?

You needUseWhy
One trend over time in a cardArea ChartNo axes, no tooltip
A trend people hover or scrubInteractive Area ChartCrosshair, comparison line, arrow keys
Compare a few seriesLine ChartReads --chart-1 to --chart-5
One value per periodBar ChartPeak marked by default
Revenue mix across periodsStacked Bar ChartTwo to four series
Rank categories with long labelsHorizontal Bar ChartTop-N lists
Two to six parts of a wholePie ChartSlices are keyboard focusable
One ratio, like storage usedDonut ChartPercentage in the centre
One bounded scoreGauge ChartHalf-circle dial
A signup or checkout funnelFunnel ChartConversion and drop-off per stage
Flows between stepsSankey ChartColumns come from the links
Nested proportionsTreemap ChartLabels only where they fit
A project schedule with dependenciesGantt ChartDay and week scales, today line
Compare five to eight scoresRadar ChartSame 0 to 1 scale
A frame and header for any chartChart CardTitle labels the region

22 items

npx shadcn@latest add @minidev/area-chart @minidev/bar-chart @minidev/chart-card @minidev/chart-legend @minidev/chart-tooltip-card @minidev/donut-chart @minidev/funnel-steps @minidev/gauge-chart @minidev/heatmap-cell @minidev/horizontal-bar-chart @minidev/interactive-area-chart @minidev/line-chart @minidev/radar-chart @minidev/stacked-bar-chart @minidev/waffle-chart @minidev/pie-chart @minidev/radial-chart @minidev/gantt-chart @minidev/treemap-chart @minidev/sankey-chart @minidev/funnel-chart @minidev/scatter-chart

Components 22

  • Dependency free SVG area chart for React with a smoothed line, dashed grid, gradient fill and an optional highlighted point. Strokes stay crisp at any size.

    npx shadcn@latest add @minidev/area-chart
  • Lightweight React bar chart with rounded bars, dashed gridlines and labels. Hovering a bar dims the rest and shows its value; the peak is highlighted first.

    npx shadcn@latest add @minidev/bar-chart
  • Card wrapper for charts with a title, optional description and a minimum height body. Pairs with the area, bar and donut charts in a React dashboard.

    npx shadcn@latest add @minidev/chart-card
  • Wrapping chart legend with small color swatches and labels. Pass colors per series or fall back to accent, success, warning and danger theme tokens.

    npx shadcn@latest add @minidev/chart-legend
  • Tooltip card for charts showing a title and label and value rows with tabular numbers. Drop it into any chart library's custom tooltip slot.

    npx shadcn@latest add @minidev/chart-tooltip-card
  • Single value donut chart in SVG that fills an accent ring to a percentage of max and prints the percent in the middle. Labelled as an image for screen readers.

    npx shadcn@latest add @minidev/donut-chart
  • A conversion funnel drawn as labeled horizontal bars scaled to the largest step, with formatted counts per stage. Suited to signup and checkout analytics.

    npx shadcn@latest add @minidev/funnel-steps
  • A semicircle SVG gauge that fills to a value against a max and prints the percentage in the center. Exposed as an image with an accessible label for dashboards.

    npx shadcn@latest add @minidev/gauge-chart
  • A square heatmap cell whose fill blends from a muted base to the accent color by an intensity from 0 to 1, with an aria label. Tile it for activity grids.

    npx shadcn@latest add @minidev/heatmap-cell
  • A lightweight horizontal bar chart where each row shows a label, a rounded bar scaled to the largest value and the number. No chart library, just Tailwind.

    npx shadcn@latest add @minidev/horizontal-bar-chart
  • A React SVG area chart with a crosshair that follows the pointer or arrow keys, showing the value and percent change against a dashed comparison line.

    npx shadcn@latest add @minidev/interactive-area-chart
  • A multi series SVG line chart with smooth curves, a dashed hairline grid and dots on the last point of each line, colored from chart tokens. No library.

    npx shadcn@latest add @minidev/line-chart
  • SVG radar chart that plots normalized 0 to 1 values on labelled axes over four concentric grid rings. Themed with currentColor and labelled for screen readers.

    npx shadcn@latest add @minidev/radar-chart
  • Stacked bar chart that splits each column into colored series segments with hover titles, category labels underneath and a series legend. Uses chart CSS tokens.

    npx shadcn@latest add @minidev/stacked-bar-chart
  • Waffle chart that fills a 10 column grid of squares to show a value out of a total, with a label and count above. Clear for adoption rates and percentages.

    npx shadcn@latest add @minidev/waffle-chart
  • React SVG pie chart with outside labels on leader lines, a legend and slices that pull out on hover or focus to show value and share, plus a data table.

    npx shadcn@latest add @minidev/pie-chart
  • React radial bar chart of concentric progress rings with labels, a legend and a rolling center total that animate on data change, or one progress ring.

    npx shadcn@latest add @minidev/radial-chart
  • React Gantt chart for project timelines with day and week scales, a today line, progress fills, dependency arrows, a fixed task column and focusable bars.

    npx shadcn@latest add @minidev/gantt-chart
  • React squarified SVG treemap with grouped cells under header strips, labels that hide in small cells, a value tooltip on hover or focus and a data table.

    npx shadcn@latest add @minidev/treemap-chart
  • React SVG sankey diagram: node columns laid out from the links, gradient ribbons, a node's flows lit on hover or focus, and a hidden data table.

    npx shadcn@latest add @minidev/sankey-chart
  • React funnel chart with horizontal or vertical stages, conversion and drop-off between stages, an optional comparison outline and bars that spring to new data.

    npx shadcn@latest add @minidev/funnel-chart
  • React scatter and bubble chart in plain SVG with rounded axis ticks, reference lines, hover that snaps to the nearest point and arrow-key point navigation.

    npx shadcn@latest add @minidev/scatter-chart

Using an AI coding agent? Read the agent guide, point it at /llms.txt for the full index, or paste /AGENTS.md into your project. Every component has plain Markdown docs at /docs/<name>.md.

See them live

Galleries render these components with sample data in every state.

Frequently asked questions

Do I need Recharts or Chart.js for these charts?

No. The charts render from a plain data array. AreaChart, BarChart and LineChart have no dependencies, and PieChart uses Motion only for its hover animation. If you need zooming, brushing or very large datasets, a dedicated charting library is still the better tool.

How do I change chart colours?

Charts draw with the theme tokens. AreaChart takes a tone (accent, success, warning, danger, info or neutral), BarChart uses the accent, and LineChart reads --chart-1 to --chart-5. Change the tokens in your theme and the charts follow in light and dark.

Which chart should I use for a conversion funnel?

FunnelChart shows conversion rates and drop-off between stages, can add a comparison series and switch between datasets. For a compact readout in a card or sidebar use FunnelSteps.

Are the charts accessible?

AreaChart gives screen readers its label plus a summary (count, first, last and peak), and BarChart reads every label and value. PieChart, StackedBarChart, TreemapChart, SankeyChart and FunnelChart carry a visually hidden data table, and pie slices, treemap cells and sankey nodes can be reached with the keyboard.