# Chart.js — Simple Yet Flexible HTML5 Canvas Charts
> Chart.js is the most popular charting library for the web — simple HTML5 canvas charts with 8 built-in chart types, responsive, animated, and mixable. The go-to choice when you need beautiful charts with minimal setup.
## Install
Save in your project root:
## Quick Use
```bash
npm i chart.js
```
```html
```
```ts
import Chart from "chart.js/auto";
new Chart(document.getElementById("myChart") as HTMLCanvasElement, {
type: "bar",
data: {
labels: ["Mon", "Tue", "Wed", "Thu", "Fri"],
datasets: [{
label: "Visits",
data: [120, 190, 300, 250, 420],
backgroundColor: "rgba(54, 162, 235, 0.5)",
}],
},
options: { responsive: true },
});
```
## Intro
Chart.js is the most popular charting library for the web with over 67K GitHub stars. It renders 8 built-in chart types using the HTML5 `