Simple HTML5 Charts using the tag
Go to file
LAU c20360d08a
Better error message when importing charts incorrectly. (#7790)
* Created a better error message when chartjs can't find an element in the DOM.
Also, prevented an exception when trying to find the canvas assuming is an array. When it could also be null.

* Exception is not thrown anymore in getCanvas. Now this pr only prevents the
item.lenght exception and logs a better error when a chart cant be created.

* Deleted error description because i forgot chartjs is used in varois other ways than importing, also used isArray from helpers.core

* isArray check deleted because the type of the dom element received in getCanvas could be not only an array.

Co-authored-by: Lautaro Alonso Urtiaga <lautaro.urtiaga@10pines.com>
2020-09-14 09:57:50 -04:00
.github Update pull request template contributing docs link (#7765) 2020-09-06 09:46:41 -04:00
docs Strong typings for scales and datasets in options (#7791) 2020-09-14 09:57:00 -04:00
samples Chart.register instead of Chart.plugins.register (#7753) 2020-09-03 11:45:57 -04:00
scripts Replace gulp with npm scripts (#7402) 2020-05-27 17:14:17 -04:00
src Better error message when importing charts incorrectly. (#7790) 2020-09-14 09:57:50 -04:00
test Fix: relative position in FF (#7792) 2020-09-13 17:20:14 -04:00
types Strong typings for scales and datasets in options (#7791) 2020-09-14 09:57:00 -04:00
.browserlistrc Add babel plugin for rollup & transform code (#6555) 2019-10-27 16:28:30 -04:00
.codeclimate.yml Use the Chart.js shared ESLint config (#5112) 2018-01-06 17:59:13 -05:00
.editorconfig Replace gulp with npm scripts (#7402) 2020-05-27 17:14:17 -04:00
.eslintignore Fix lint issues in gulpfile.js (#7076) 2020-02-09 11:50:11 -05:00
.eslintrc.yml Replace gulp with npm scripts (#7402) 2020-05-27 17:14:17 -04:00
.gitignore ESM build, with helpers separated (#7400) 2020-06-23 19:02:51 -04:00
.htmllintrc Make Chart.Animation/animations/Tooltip importable (#5382) 2018-04-02 10:55:52 +02:00
.travis.yml Bump package version in preparation for alpha2 release (#7586) 2020-07-17 16:41:27 -04:00
babel.config.json Babel loose (#7452) 2020-06-05 17:03:54 -04:00
composer.json Use HTTPS instead of HTTP for URLs supporting it 2018-12-17 07:50:02 +01:00
karma.conf.js Use interpolation in fill: 'stack' (and fix interpolation) (#7711) 2020-08-16 11:18:46 -04:00
LICENSE.md Update license year and copyright holders (#5053) 2017-12-31 15:17:22 +01:00
MAINTAINING.md Finish removing bower (#7294) 2020-04-28 17:34:49 -04:00
package-lock.json Cache Intl.NumberFormat instances (#7755) 2020-09-04 16:49:38 -04:00
package.json Cache Intl.NumberFormat instances (#7755) 2020-09-04 16:49:38 -04:00
README.md Refer to master documentation for Contributing (#7733) 2020-08-25 08:16:33 -04:00
rollup.config.js Fix shared option handling (#7731) 2020-08-27 09:14:08 -04:00
tsconfig.json Turn on excludeNotExported (#7121) 2020-02-20 12:18:21 -05:00


Simple yet flexible JavaScript charting for designers & developers

Downloads Builds Coverage Awesome Slack

Documentation

Contributing

Instructions on building and testing Chart.js can be found in the documentation. Before submitting an issue or a pull request, please take a moment to look over the contributing guidelines first. For support, please post questions on Stack Overflow with the chartjs tag.

License

Chart.js is available under the MIT license.