From ff9e9f1d7c32b8c1ec36f9eb8a0ace5d20748818 Mon Sep 17 00:00:00 2001 From: Shusen Wang Date: Mon, 4 Jul 2016 14:51:26 +0800 Subject: [PATCH] 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 --- docs/01-Chart-Configuration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +```