# Chart.js

> Simple, popular canvas charts for any stack, with React and Vue wrappers.

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

free

Simple, popular canvas charts for any stack, with React and Vue wrappers.

by Chart.js contributors[GitHub](https://github.com/chartjs/Chart.js)[npm](https://npmjs.com/package/chart.js)

[visit](https://www.chartjs.org/?utm_source=tastebase&utm_medium=referral&utm_content=detail-page)

[https://www.chartjs.org](https://www.chartjs.org/?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

## Try these

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

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

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

no preview

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

Tiny, extremely fast canvas time-series charts (about 50KB, millions of points).

no preview

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

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

## For your agent

##### Install

`npm i chart.js`

##### Use it for

- quick standard charts in plain HTML, Vue or server-rendered apps
- admin panels where canvas performance beats SVG and design is secondary

##### Skip it when

- React dashboards with a design system: use recharts (SVG, styleable, accessible)
- accessibility-critical charts: canvas has no semantics, use recharts or provide a data table
- very large time series: use uplot

##### What's inside8 free

- Line
- Bar
- Pie
- Doughnut
- Polar Area
- Radar
- Scatter
- Bubble

##### Facts

**Frameworks**
vanilla, react, vue, svelte, solid, angular

**Styling**
unstyled

**Weight**
medium

**Accessibility**
weak

**Maturity**
established

**License**
MIT

**Price**
Free

##### Alternatives

[Apache ECharts](https://tastebase.ehsanulsiam.workers.dev/browse/echarts)[Recharts](https://tastebase.ehsanulsiam.workers.dev/browse/recharts)[uPlot](https://tastebase.ehsanulsiam.workers.dev/browse/uplot)

[Compare Chart.js with its alternatives](https://tastebase.ehsanulsiam.workers.dev/alternatives/chartjs-alternatives)

```
import Chart from 'chart.js/auto'

const canvas = document.getElementById('signups') as HTMLCanvasElement
new Chart(canvas, {
  type: 'bar',
  data: { labels: months, datasets: [{ label: 'Signups', data: values }] },
  options: { responsive: true, maintainAspectRatio: false },
})
```

https://www.chartjs.org/docs/latest/samples/bar/vertical.html

Loading website

[Visit](https://www.chartjs.org/?utm_source=tastebase&utm_medium=referral&utm_content=floating-pill)
