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.
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 need | Use | Why |
|---|---|---|
| One trend over time in a card | Area Chart | No axes, no tooltip |
| A trend people hover or scrub | Interactive Area Chart | Crosshair, comparison line, arrow keys |
| Compare a few series | Line Chart | Reads --chart-1 to --chart-5 |
| One value per period | Bar Chart | Peak marked by default |
| Revenue mix across periods | Stacked Bar Chart | Two to four series |
| Rank categories with long labels | Horizontal Bar Chart | Top-N lists |
| Two to six parts of a whole | Pie Chart | Slices are keyboard focusable |
| One ratio, like storage used | Donut Chart | Percentage in the centre |
| One bounded score | Gauge Chart | Half-circle dial |
| A signup or checkout funnel | Funnel Chart | Conversion and drop-off per stage |
| Flows between steps | Sankey Chart | Columns come from the links |
| Nested proportions | Treemap Chart | Labels only where they fit |
| A project schedule with dependencies | Gantt Chart | Day and week scales, today line |
| Compare five to eight scores | Radar Chart | Same 0 to 1 scale |
| A frame and header for any chart | Chart Card | Title 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-chartComponents 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-chartLightweight 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-chartCard 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-cardWrapping 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-legendTooltip 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-cardSingle 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-chartA 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-stepsA 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-chartA 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-cellA 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-chartA 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-chartA 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-chartSVG 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-chartStacked 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-chartWaffle 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-chartReact 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-chartReact 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-chartReact 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-chartReact 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-chartReact 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-chartReact 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-chartReact 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.
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.