82b1e5cd99
Introduced a new meta.hidden 3 states flag (null|true|false) to be able to override dataset.hidden when interacting with the chart (i.e., true or false to ignore the dataset.hidden value). This is required in order to be able to correctly share dataset.hidden between multiple charts. For example: 2 charts are sharing the same data and dataset.hidden is initially false: the dataset will be displayed on both charts because meta.hidden is null. If the user clicks the legend of the first chart, meta.hidden is changed to true and the dataset is only hidden on the first chart. If dataset.hidden changes, only the second chart will have the dataset visibility updated and that until the user click again on the first chart legend, switching the meta.hidden to null. |
||
---|---|---|
dist | ||
docs | ||
samples | ||
src | ||
test | ||
.codeclimate.yml | ||
.eslintignore | ||
.eslintrc | ||
.gitignore | ||
.travis.yml | ||
bower.json | ||
composer.json | ||
config.jshintrc | ||
CONTRIBUTING.md | ||
gulpfile.js | ||
karma.conf.ci.js | ||
karma.conf.js | ||
karma.coverage.conf.js | ||
LICENSE.md | ||
package.json | ||
README.md |
Chart.js
Simple HTML5 Charts using the canvas element chartjs.org
Installation
To download a zip, go to the Chart.js on Github
To install via npm / bower:
npm install chart.js --save
bower install Chart.js --save
CDN: https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.0.0/Chart.js
Documentation
You can find documentation at www.chartjs.org/docs. The markdown files that build the site are available under /docs
. Please note - in some of the json examples of configuration you might notice some liquid tags - this is just for the generating the site html, please disregard.
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
gulp build
, gulp test
License
Chart.js is available under the MIT license.