Skip to content

Commit

Permalink
Document sample components file (#9697)
Browse files Browse the repository at this point in the history
  • Loading branch information
etimberg committed Oct 1, 2021
1 parent 00712f1 commit a21c1c6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/samples/utils.md
Expand Up @@ -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)

0 comments on commit a21c1c6

Please sign in to comment.