From: Evert Timberg Date: Fri, 1 Oct 2021 16:27:54 +0000 (-0400) Subject: Document sample components file (#9697) X-Git-Tag: v3.6.0~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a21c1c6dfa037bb80808928cb5df707c46a08897;p=thirdparty%2FChart.js.git Document sample components file (#9697) --- diff --git a/docs/samples/utils.md b/docs/samples/utils.md index a1e8faf3f..ac9b8f584 100644 --- a/docs/samples/utils.md +++ b/docs/samples/utils.md @@ -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)