Simple HTML5 Charts using the <canvas> tag
Filed under dataShow All
Simple HTML5 Charts using the canvas element chartjs.org
To install via npm:
npm install chart.js --save
To install via bower:
bower install chart.js --save
Selecting the Correct Build
Chart.js provides two different builds that are available for your use. The
Chart.min.jsfiles 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.
Chart.bundle.min.jsbuilds 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.
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/latest/developers/#previous-versions.
Before submitting an issue or a pull request, please take a moment to look over the contributing guidelines first. For support using Chart.js, please post questions with the
chartjstag on Stack Overflow.
Instructions on building and testing Chart.js can be found in the documentation.
- BrowserStack for allowing our team to test on thousands of browsers.
- @n8agrin for the Twitter handle donation.
Chart.js is available under the MIT license.