zhaojinyu 73e6d881c9 first commit 1 周之前
..
dist 73e6d881c9 first commit 1 周之前
docs 73e6d881c9 first commit 1 周之前
samples 73e6d881c9 first commit 1 周之前
scripts 73e6d881c9 first commit 1 周之前
src 73e6d881c9 first commit 1 周之前
test 73e6d881c9 first commit 1 周之前
.editorconfig 73e6d881c9 first commit 1 周之前
.eslintignore 73e6d881c9 first commit 1 周之前
.eslintrc.yml 73e6d881c9 first commit 1 周之前
.htmllintrc 73e6d881c9 first commit 1 周之前
.npmignore 73e6d881c9 first commit 1 周之前
LICENSE.md 73e6d881c9 first commit 1 周之前
MAINTAINING.md 73e6d881c9 first commit 1 周之前
README.md 73e6d881c9 first commit 1 周之前
book.json 73e6d881c9 first commit 1 周之前
bower.json 73e6d881c9 first commit 1 周之前
composer.json 73e6d881c9 first commit 1 周之前
gulpfile.js 73e6d881c9 first commit 1 周之前
karma.conf.js 73e6d881c9 first commit 1 周之前
package.json 73e6d881c9 first commit 1 周之前

README.md

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 compatability issues.

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.