In the pie/doughnut legendCallback function the <span> is not closed immediately so that the text is written in the <span> instead of the <li>
if (chart.data.datasets.length) {
for (var i = 0; i < chart.data.datasets[0].data.length; ++i) {
- text.push('<li><span style="background-color:' + chart.data.datasets[0].backgroundColor[i] + '">');
+ text.push('<li><span style="background-color:' + chart.data.datasets[0].backgroundColor[i] + '"></span>');
if (chart.data.labels[i]) {
text.push(chart.data.labels[i]);
}
- text.push('</span></li>');
+ text.push('</li>');
}
}
}
}
});
-};
\ No newline at end of file
+};