From: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com> Date: Wed, 26 May 2021 11:55:26 +0000 (+0200) Subject: show the utils file in the samples page to clarify what the functions do (#9160) X-Git-Tag: v3.3.1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=140cbb4cd6ec33d24c65511b113dd2b6ed0e3b41;p=thirdparty%2FChart.js.git show the utils file in the samples page to clarify what the functions do (#9160) --- diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 80cc8ff31..ee97448b5 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -264,6 +264,7 @@ module.exports = { 'plugins/quadrants', ] }, + 'utils' ], '/': [ '', diff --git a/docs/samples/utils.md b/docs/samples/utils.md new file mode 100644 index 000000000..a1e8faf3f --- /dev/null +++ b/docs/samples/utils.md @@ -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) +