From d02dacda367bbeae61c25429ebc7c52b1a85f34e Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Sat, 24 Sep 2016 10:09:19 -0400 Subject: [PATCH 1/2] Fixes HTML legend string for polar area charts to match doughnut charts. --- src/controllers/controller.polarArea.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/controller.polarArea.js b/src/controllers/controller.polarArea.js index b27daf4170d..78234ea59d4 100644 --- a/src/controllers/controller.polarArea.js +++ b/src/controllers/controller.polarArea.js @@ -32,11 +32,11 @@ module.exports = function(Chart) { if (datasets.length) { for (var i = 0; i < datasets[0].data.length; ++i) { - text.push('
  • '); + text.push('
  • '); if (labels[i]) { text.push(labels[i]); } - text.push('
  • '); + text.push(''); } } From 72e816b0d7d01291cbfa0ef08a403804b3382814 Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Sat, 24 Sep 2016 17:10:39 -0400 Subject: [PATCH 2/2] Fix default config test --- test/defaultConfig.tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/defaultConfig.tests.js b/test/defaultConfig.tests.js index fb34d33ec2c..84c9655e6c7 100644 --- a/test/defaultConfig.tests.js +++ b/test/defaultConfig.tests.js @@ -219,7 +219,7 @@ describe("Default Configs", function() { options: config }); - var expectedLegend = ''; + var expectedLegend = ''; expect(chart.generateLegend()).toBe(expectedLegend); });