Chart.js/docs/getting-started/installation.md
2019-11-02 15:48:49 -04:00

1.8 KiB

Installation

Chart.js can be installed via npm or bower. It is recommended to get Chart.js this way.

npm

npm npm

npm install chart.js --save

Bower

bower

bower install chart.js --save

CDN

CDNJS

cdnjs

Chart.js built files are available on CDNJS:

https://cdnjs.com/libraries/Chart.js

jsDelivr

jsdelivr jsdelivr hits

Chart.js built files are also available through jsDelivr:

https://www.jsdelivr.com/package/npm/chart.js?path=dist

Github

github

You can download the latest version of Chart.js on GitHub.

If you download or clone the repository, you must build 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.