]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Document sample components file (#9697)
authorEvert Timberg <evert.timberg+github@gmail.com>
Fri, 1 Oct 2021 16:27:54 +0000 (12:27 -0400)
committerGitHub <noreply@github.com>
Fri, 1 Oct 2021 16:27:54 +0000 (19:27 +0300)
docs/samples/utils.md

index a1e8faf3f31972051d7c5740b7f115f9b8353184..ac9b8f5841d82f7c45c0af7963ed1209de9d7400 100644 (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)