Chart.js
, (*1)
, (*2)
Simple HTML5 Charts using the canvas element chartjs.org, (*3)
Installation
You can download the latest version of Chart.js from the GitHub releases or use a Chart.js CDN., (*4)
To install via npm:, (*5)
npm install chart.js --save
To install via bower:, (*6)
bower install chart.js --save
Selecting the Correct Build
Chart.js provides two different builds that are available for your use. The Chart.js
and Chart.min.js
files include Chart.js and the accompanying color parsing library. If this version is used and you require the use of the time axis, Moment.js will need to be included before Chart.js., (*7)
The Chart.bundle.js
and Chart.bundle.min.js
builds include Moment.js in a single file. This version should be used if you require time axes and want a single file to include, select this version. Do not use this build if your application already includes Moment.js. If you do, Moment.js will be included twice, increasing the page load time and potentially introducing version issues., (*8)
Documentation
You can find documentation at www.chartjs.org/docs. The markdown files that build the site are available under /docs
. Previous version documentation is available at www.chartjs.org/docs/#notes-previous-versions., (*9)
Contributing
Before submitting an issue or a pull request to the project, please take a moment to look over the contributing guidelines first., (*10)
For support using Chart.js, please post questions with the chartjs
tag on Stack Overflow., (*11)
Building and Testing
To build, run gulp build
., (*12)
To test, run gulp test
., (*13)
To test against code standards, run gulp lint
., (*14)
More information on building and testing can be found in gulpfile.js., (*15)
Thanks to BrowserStack for allowing our team to test on thousands of browsers., (*16)
License
Chart.js is available under the MIT license., (*17)