Simple HTML5 Charts using the tag
Go to file
2019-01-17 16:01:27 +01:00
.github Update contributors guide and issue templates (#5962) 2019-01-16 09:35:14 +01:00
docs Update contributors guide and issue templates (#5962) 2019-01-16 09:35:14 +01:00
samples Use Chart.min.js in samples (#5958) 2019-01-06 09:56:58 -05:00
scripts Deploy to GitHub pages (#4256) 2017-05-19 21:58:34 +02:00
src Faster date operations (#5982) 2019-01-17 16:01:27 +01:00
test Implement scriptable options for points in line charts (#5973) 2019-01-15 09:24:12 +01:00
.codeclimate.yml Use the Chart.js shared ESLint config (#5112) 2018-01-06 17:59:13 -05:00
.editorconfig Use HTTPS instead of HTTP for URLs supporting it 2018-12-17 07:50:02 +01:00
.eslintignore Update git ignore to make it easier to switch between branches. Add code climate config here as well. 2016-02-14 15:15:17 -05:00
.eslintrc.yml Setup HTML and JS linters for samples (#5195) 2018-02-03 13:28:54 +01:00
.gitignore Ignore package-lock.json (#5138) 2018-01-11 06:51:03 -05:00
.htmllintrc Make Chart.Animation/animations/Tooltip importable (#5382) 2018-04-02 10:55:52 +02:00
.npmignore Make Travis to release the npm package 2016-06-18 12:14:32 +02:00
.travis.yml Remove gulp-connect and add jsdelivr/unpkg paths (#5875) 2018-12-01 08:35:43 +01:00
book.json Improve title of generated documentation (#5256) 2018-02-15 19:25:49 -05:00
composer.json Use HTTPS instead of HTTP for URLs supporting it 2018-12-17 07:50:02 +01:00
gulpfile.js Migrate from Browserify to rollup (#5904) 2018-12-14 20:20:43 +01:00
karma.conf.js Migrate from Browserify to rollup (#5904) 2018-12-14 20:20:43 +01:00
LICENSE.md Update license year and copyright holders (#5053) 2017-12-31 15:17:22 +01:00
MAINTAINING.md Use HTTPS instead of HTTP for URLs supporting it 2018-12-17 07:50:02 +01:00
package.json Migrate from Browserify to rollup (#5904) 2018-12-14 20:20:43 +01:00
README.md Use HTTPS instead of HTTP for URLs supporting it 2018-12-17 07:50:02 +01:00
rollup.config.js Migrate from Browserify to rollup (#5904) 2018-12-14 20:20:43 +01:00

Chart.js

travis coveralls codeclimate slack

Simple HTML5 Charts using the canvas element chartjs.org

Installation

You can download the latest version of Chart.js from the GitHub releases or use a Chart.js CDN.

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 for you to choose: Stand-Alone Build, Bundled Build.

Stand-Alone Build

Files:

  • dist/Chart.js
  • dist/Chart.min.js

The stand-alone build includes Chart.js as well as the color parsing library. If this version is used, you are required to include Moment.js before Chart.js for the functionality of the time axis.

Bundled Build

Files:

  • dist/Chart.bundle.js
  • dist/Chart.bundle.min.js

The bundled build includes Moment.js in a single file. You should use this version if you require time axes and want to include a single file. You should not use this build if your application already included Moment.js. Otherwise, Moment.js will be included twice which results in increasing page load time and possible version compatibility issues. The Moment.js version in the bundled build is private to Chart.js so if you want to use Moment.js yourself, it's better to use Chart.js (non bundled) and import Moment.js manually.

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/latest/developers/#previous-versions.

Contributing

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 chartjs tag on Stack Overflow.

Building

Instructions on building and testing Chart.js can be found in the documentation.

Thanks

  • BrowserStack for allowing our team to test on thousands of browsers.
  • @n8agrin for the Twitter handle donation.

License

Chart.js is available under the MIT license.