fix getting started global chart config typo

This commit is contained in:
Levi Thomason 2015-11-01 23:03:14 -08:00
parent 29c3bd3746
commit 92841cd38a

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`.