From: Peter Date: Wed, 20 Apr 2016 11:55:58 +0000 (+0200) Subject: Fixed closing span position X-Git-Tag: 2.1.0~62^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2308%2Fhead;p=thirdparty%2FChart.js.git Fixed closing span position In the pie/doughnut legendCallback function the is not closed immediately so that the text is written in the instead of the
  • --- diff --git a/src/controllers/controller.doughnut.js b/src/controllers/controller.doughnut.js index de5c041c2..d43234375 100644 --- a/src/controllers/controller.doughnut.js +++ b/src/controllers/controller.doughnut.js @@ -21,11 +21,11 @@ module.exports = function(Chart) { if (chart.data.datasets.length) { for (var i = 0; i < chart.data.datasets[0].data.length; ++i) { - text.push('
  • '); + text.push('
  • '); if (chart.data.labels[i]) { text.push(chart.data.labels[i]); } - text.push('
  • '); + text.push(''); } } @@ -285,4 +285,4 @@ module.exports = function(Chart) { } } }); -}; \ No newline at end of file +};