From: Shusen Wang Date: Mon, 4 Jul 2016 06:51:26 +0000 (+0800) Subject: add wikipedia link for DRY explanation X-Git-Tag: v2.2.0-rc.1~12^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2905%2Fhead;p=thirdparty%2FChart.js.git add wikipedia link for DRY explanation DRY is a short term for Don't Repeat yourself, maybe it is not so well known by front-end developers, but it is well known among back end developers --- diff --git a/docs/01-Chart-Configuration.md b/docs/01-Chart-Configuration.md index 75950eada..46c2fe023 100644 --- a/docs/01-Chart-Configuration.md +++ b/docs/01-Chart-Configuration.md @@ -21,7 +21,7 @@ var chartInstance = new Chart(ctx, { ### Global Configuration -This concept was introduced in Chart.js 1.0 to keep configuration DRY, and allow for changing options globally across chart types, avoiding the need to specify options for each instance, or the default for a particular chart type. +This concept was introduced in Chart.js 1.0 to keep configuration [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself), and allow for changing options globally across chart types, avoiding the need to specify options for each instance, or the default for a particular chart type. Chart.js merges the options object passed to the chart with the global configuration using chart type defaults and scales defaults appropriately. This way you can be as specific as you would like in your individual chart configuration, while still changing the defaults for all chart types where applicable. The global general options are defined in `Chart.defaults.global`. The defaults for each chart type are discussed in the documentation for that chart type. @@ -408,4 +408,4 @@ img.onload = function() { }) } -``` \ No newline at end of file +```