From 3f658555bae95a81970c3289408ef25006d096f5 Mon Sep 17 00:00:00 2001 From: coolbombom Date: Mon, 11 Jan 2016 12:48:09 +0100 Subject: [PATCH] I will try again! had a bad effect on color that was not array .... fully tested now, is working in my solution! --- src/Chart.Bar.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Chart.Bar.js b/src/Chart.Bar.js index f74ee1955..c38d2525c 100644 --- a/src/Chart.Bar.js +++ b/src/Chart.Bar.js @@ -115,10 +115,10 @@ value : dataPoint, label : data.labels[index], datasetLabel: dataset.label, - strokeColor : dataset.strokeColor[index] || dataset.strokeColor, - fillColor : dataset.fillColor[index] || dataset.fillColor, - highlightFill : (dataset.highlightFill) ? dataset.highlightFill[index] || dataset.highlightFill : dataset.fillColor[index] || dataset.fillColor, - highlightStroke : (dataset.highlightStroke) ? dataset.highlightStroke[index] || dataset.highlightStroke : dataset.strokeColor[index] || dataset.strokeColor + strokeColor : (typeof dataset.strokeColor != 'string') ? dataset.strokeColor[index] : dataset.strokeColor, + fillColor : (typeof dataset.fillColor != 'string') ? dataset.fillColor[index] : dataset.fillColor, + highlightFill : (dataset.highlightFill && typeof dataset.highlightFill != 'string') ? dataset.highlightFill[index] || dataset.highlightFill : (typeof dataset.fillColor != 'string') ? dataset.fillColor[index] : dataset.fillColor, + highlightStroke : (dataset.highlightStroke && typeof dataset.highlightStroke != 'string') ? dataset.highlightStroke[index] || dataset.highlightStroke : (typeof dataset.strokeColor != 'string') ? dataset.strokeColor[index] : dataset.strokeColor })); },this); -- 2.47.2