# Recharts

> Composable SVG charts for React; the engine behind shadcn/ui charts.

Source: https://tastebase.ehsanulsiam.workers.dev/browse/recharts

free

Composable SVG charts for React; the engine behind shadcn/ui charts.

by Recharts Group[GitHub](https://github.com/recharts/recharts)[npm](https://npmjs.com/package/recharts)

[visit](https://recharts.github.io/?utm_source=tastebase&utm_medium=referral&utm_content=detail-page)

[https://recharts.github.io](https://recharts.github.io/?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

## Try these

no preview

### [visx](https://tastebase.ehsanulsiam.workers.dev/browse/visx)

Airbnb's low-level D3 + React primitives (scales, shapes, axes) for custom charts.

no preview

### [nivo](https://tastebase.ehsanulsiam.workers.dev/browse/nivo)

Rich, themeable React charts in SVG, canvas or HTML, with motion and patterns built in.

no preview

### [Apache ECharts](https://tastebase.ehsanulsiam.workers.dev/browse/echarts)

Full-featured canvas/SVG charting engine for big data, maps and complex dashboards.

no preview

### [Unovis](https://tastebase.ehsanulsiam.workers.dev/browse/unovis)

Modular, framework-agnostic charts and network graphs from F5, styled with CSS variables.

## Looks that pick it

[Corporate / dashboardfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/corporate)[Fluentfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/fluent)[Material Design 2first pick](https://tastebase.ehsanulsiam.workers.dev/looks/material-design)[Fintechfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/fintech)[Healthcarefirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/healthcare)[Civic / public servicefirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/civic)

## For your agent

##### Install

`npm i recharts react-is`

##### Use it for

- standard line, area, bar and pie charts in a React dashboard
- charts inside a shadcn/ui app (its chart component: npx shadcn@latest add chart)
- KPI cards with small sparkline or area charts; a sparkline next to each price or row in a list

##### Skip it when

- more than ~5,000 points or real-time streams: SVG slows down, use uplot or echarts
- bespoke visualisations that are not standard chart types: use visx
- a gantt chart, org chart or flow diagram: not chart types it draws; use a dedicated gantt or diagram library
- non-React stacks: use unovis or echarts

##### What's inside12 free

- Line
- Area
- Bar
- Composed
- Pie
- Radar
- RadialBar
- Scatter
- Funnel
- Treemap
- Sankey
- Sunburst

##### Facts

**Frameworks**
react

**Styling**
unstyled

**Weight**
medium

**Accessibility**
ok

**Maturity**
established

**License**
MIT

**Price**
Free

##### Pairs with

[shadcn/ui](https://tastebase.ehsanulsiam.workers.dev/browse/shadcn-ui)[NumberFlow](https://tastebase.ehsanulsiam.workers.dev/browse/number-flow)

##### Alternatives

[visx](https://tastebase.ehsanulsiam.workers.dev/browse/visx)[nivo](https://tastebase.ehsanulsiam.workers.dev/browse/nivo)[Apache ECharts](https://tastebase.ehsanulsiam.workers.dev/browse/echarts)[Unovis](https://tastebase.ehsanulsiam.workers.dev/browse/unovis)

[Compare Recharts with its alternatives](https://tastebase.ehsanulsiam.workers.dev/alternatives/recharts-alternatives)

```
import { AreaChart, Area, XAxis, Tooltip } from 'recharts'

<AreaChart responsive data={data} style={{ width: '100%', height: 240 }}>
  <XAxis dataKey="month" tickLine={false} axisLine={false} />
  <Tooltip />
  <Area type="monotone" dataKey="revenue" stroke="var(--chart-1)" fill="var(--chart-1)" fillOpacity={0.15} />
</AreaChart>
```

https://recharts.github.io/en-US/examples/

Loading website

[Visit](https://recharts.github.io/?utm_source=tastebase&utm_medium=referral&utm_content=floating-pill)
