Merge pull request #1606 from levithomason/patch-1

Fix getting started global chart config typo
This commit is contained in:
Evert Timberg 2015-11-02 07:29:46 -05:00
commit 57d8155bb0

View File

@ -103,7 +103,7 @@ Chart.defaults.global = {
// Legend callback function.
// @param {Chart} chart : the chart object to generate a legend for
legendCallback: legendCallback: function(chart) {
legendCallback: function(chart) {
var text = [];
text.push('<ul class="' + chart.id + '-legend">');
for (var i = 0; i < chart.data.datasets.length; i++) {
@ -116,7 +116,7 @@ Chart.defaults.global = {
text.push('</ul>');
return text.join("");
}
},
animation: {
duration: 1000,
@ -222,4 +222,4 @@ If for example, you wanted all charts created to be responsive, and resize when
Chart.defaults.global.responsive = true;
```
Now, every time we create a chart, `options.responsive` will be `true`.
Now, every time we create a chart, `options.responsive` will be `true`.