mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Merge pull request #1606 from levithomason/patch-1
Fix getting started global chart config typo
This commit is contained in:
commit
57d8155bb0
@ -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`.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user