Chart.js/docs/samples/utils.md
2021-10-01 19:27:54 +03:00

888 B

Utils

Disclaimer

The Utils file contains multiple helper functions that the chart.js sample pages use to generate charts. These functions are subject to change, including but not limited to breaking changes without prior notice.

Because of this please don't rely on this file in production environments.

Functions

<<< @/docs/scripts/utils.js

File on github

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