show the utils file in the samples page to clarify what the functions do (#9160)

This commit is contained in:
Jacco van den Berg 2021-05-26 13:55:26 +02:00 committed by GitHub
parent 03eb826f8c
commit 140cbb4cd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View File

@ -264,6 +264,7 @@ module.exports = {
'plugins/quadrants', 'plugins/quadrants',
] ]
}, },
'utils'
], ],
'/': [ '/': [
'', '',

14
docs/samples/utils.md Normal file
View File

@ -0,0 +1,14 @@
# 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](https://github.com/chartjs/Chart.js/blob/master/docs/scripts/utils.js)