From 6c50cb0fc0dd2e0e26eca6f4c002c76446a9b86a Mon Sep 17 00:00:00 2001 From: Peter Date: Wed, 20 Apr 2016 13:55:58 +0200 Subject: [PATCH] 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
  • --- src/controllers/controller.doughnut.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +}; -- 2.47.2