Document sample components file (#9697)

This commit is contained in:
Evert Timberg 2021-10-01 12:27:54 -04:00 committed by GitHub
parent 00712f19d6
commit a21c1c6dfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,3 +12,10 @@ Because of this please don't rely on this file in production environments.
[File on github](https://github.com/chartjs/Chart.js/blob/master/docs/scripts/utils.js)
## Components
Some of the samples make reference to a `components` object. This is an artifact of using a module bundler to build the samples. The creation of that components object is shown below. If chart.js is included as a browser script, these items are accessible via the `Chart` object, i.e `Chart.Tooltip`.
<<< @/docs/scripts/components.js
[File on github](https://github.com/chartjs/Chart.js/blob/master/docs/scripts/components.js)