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
2020-09-13 17:20:14 -04:00
2020-06-05 17:03:54 -04:00
2020-04-28 17:34:49 -04: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.

Description
Simple HTML5 Charts using the tag
Readme 67 MiB
Languages
JavaScript 89%
TypeScript 10.6%
Shell 0.2%
HTML 0.2%