How to Install Chart.js
Created
Modified
Simple yet flexible JavaScript charting for designers & developers.
Installation
You can download the latest version of Chart.js from the GitHub releases or use a Chart.js CDN.
Cloning a repository
You can clone a repository from GitHub.com to your local computer.
Cloning with HTTPS URLs
git clone https://github.com/chartjs/Chart.js.git
Cloning with SSH URLs
git clone [email protected]:chartjs/Chart.js.git
Cloning with GitHub CLI
gh repo clone chartjs/Chart.js
Install via NPM package
Run the following command to locally install the package and its dependencies with NPM.
Downloading and installing packages locally
npm i chart.js
npm install chart.js
yarn add chart.js
Downloading and installing packages globally
npm i -g chart.js
yarn global add chart.js
Install Specific Version of a Package
npm install [email protected]
yarn add [email protected]
Bower
bower install chart.js
- checkOpen source - Chart.js is a community maintained project, contributions welcome!
- check8 Chart types - Visualize your data in 8 different ways; each of them animated and customisable.
- checkHTML5 Canvas - Great rendering performance across all modern browsers (IE11+).
- checkResponsive - Redraws charts on window resize for perfect scale granularity.