diff --git a/src/core/core.datasetController.js b/src/core/core.datasetController.js index 2d8972e6e2f..3a10302f022 100644 --- a/src/core/core.datasetController.js +++ b/src/core/core.datasetController.js @@ -346,10 +346,6 @@ helpers.extend(DatasetController.prototype, { style = me._resolveDataElementOptions(meta.data[index] || {}, index); } - if (style.fill === false || style.fill === null) { - style.backgroundColor = 'rgba(0,0,0,0)'; - } - return style; }, diff --git a/test/specs/plugin.legend.tests.js b/test/specs/plugin.legend.tests.js index 1fd4821bb59..671e3af2c48 100644 --- a/test/specs/plugin.legend.tests.js +++ b/test/specs/plugin.legend.tests.js @@ -149,7 +149,7 @@ describe('Legend block tests', function() { datasetIndex: 1 }, { text: 'dataset3', - fillStyle: 'rgba(0,0,0,0)', + fillStyle: 'rgba(0,0,0,0.1)', hidden: false, lineCap: 'butt', lineDash: [], @@ -198,7 +198,7 @@ describe('Legend block tests', function() { expect(chart.legend.legendItems).toEqual([{ text: 'dataset3', - fillStyle: 'rgba(0,0,0,0)', + fillStyle: 'rgba(0,0,0,0.1)', hidden: false, lineCap: 'butt', lineDash: [],