2017-03-21 01:36:54 +01:00
# Installation
Chart.js can be installed via npm or bower. It is recommended to get Chart.js this way.
## npm
2017-09-10 14:31:59 +02:00
[![npm ](https://img.shields.io/npm/v/chart.js.svg?style=flat-square&maxAge=600 )](https://npmjs.com/package/chart.js)
2017-10-22 19:18:24 +02:00
[![npm ](https://img.shields.io/npm/dm/chart.js.svg?style=flat-square&maxAge=600 )](https://npmjs.com/package/chart.js)
2017-03-21 01:36:54 +01:00
```bash
npm install chart.js --save
```
## Bower
2017-09-10 14:31:59 +02:00
[![bower ](https://img.shields.io/bower/v/chartjs.svg?style=flat-square&maxAge=600 )](https://libraries.io/bower/chartjs)
2017-03-21 01:36:54 +01:00
```bash
bower install chart.js --save
```
## CDN
2019-02-05 02:00:44 +01:00
2017-10-22 19:18:24 +02:00
### CDNJS
[![cdnjs ](https://img.shields.io/cdnjs/v/Chart.js.svg?style=flat-square&maxAge=600 )](https://cdnjs.com/libraries/Chart.js)
2017-03-21 01:36:54 +01:00
2017-10-22 19:18:24 +02:00
Chart.js built files are available on [CDNJS ](https://cdnjs.com/ ):
https://cdnjs.com/libraries/Chart.js
### jsDelivr
[![jsdelivr ](https://img.shields.io/npm/v/chart.js.svg?label=jsdelivr&style=flat-square&maxAge=600 )](https://cdn.jsdelivr.net/npm/chart.js@latest/dist/) [![jsdelivr hits ](https://data.jsdelivr.com/v1/package/npm/chart.js/badge )](https://www.jsdelivr.com/package/npm/chart.js)
2018-12-15 11:28:17 +01:00
Chart.js built files are also available through [jsDelivr ](https://www.jsdelivr.com/ ):
2017-10-22 19:18:24 +02:00
https://www.jsdelivr.com/package/npm/chart.js?path=dist
2017-03-21 01:36:54 +01:00
## Github
2017-09-10 14:31:59 +02:00
[![github ](https://img.shields.io/github/release/chartjs/Chart.js.svg?style=flat-square&maxAge=600 )](https://github.com/chartjs/Chart.js/releases/latest)
2017-03-21 01:36:54 +01:00
You can download the latest version of [Chart.js on GitHub ](https://github.com/chartjs/Chart.js/releases/latest ).
2017-11-30 14:41:32 +01:00
If you download or clone the repository, you must [build ](../developers/contributing.md#building-and-testing ) Chart.js to generate the dist files. Chart.js no longer comes with prebuilt release versions, so an alternative option to downloading the repo is **strongly** advised.