// 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++) {
text.push('</ul>');
return text.join("");
- }
+ },
animation: {
duration: 1000,
Chart.defaults.global.responsive = true;
```
-Now, every time we create a chart, `options.responsive` will be `true`.
\ No newline at end of file
+Now, every time we create a chart, `options.responsive` will be `true`.