b6807b2dd9
added helper method to adjust the index pass in chartConfig rather than access within method, make it easier to test added semi-colon at the end of helper method added test for adjustIndex helper method fixed lint issues added integration test for the interaction of trigger an event over the bar . . moved adjustIndex into element helper removed method from helper and adjusted method in core.interaction added test for the element adjustIndex helper added a skipIndexAdjustment method to handle when to skip the adjustment along with test cases fixed lint issues removed the test for the helper method |
||
---|---|---|
.github | ||
docs | ||
samples | ||
scripts | ||
src | ||
test | ||
.codeclimate.yml | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc | ||
.gitignore | ||
.npmignore | ||
.travis.yml | ||
composer.json | ||
config.jshintrc | ||
CONTRIBUTING.md | ||
gulpfile.js | ||
karma.conf.ci.js | ||
karma.conf.js | ||
karma.coverage.conf.js | ||
LICENSE.md | ||
MAINTAINING.md | ||
package.json | ||
README.md | ||
thankyou.md |
Chart.js
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 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.
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.
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.
Contributing
Before submitting an issue or a pull request to the project, 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 and Testing
To build, run gulp build
.
To test, run gulp test
.
To test against code standards, run gulp lint
.
More information on building and testing can be found in gulpfile.js.
Thanks to BrowserStack for allowing our team to test on thousands of browsers.
License
Chart.js is available under the MIT license.