From db196ce7c1b4f0a0b65d4c7e85cdb8d6ac533a17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eneko=20Uru=C3=B1uela?= Date: Fri, 1 Oct 2021 17:29:19 +0200 Subject: [PATCH] Add missing border color changes --- src/Plots.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Plots.js b/src/Plots.js index fb9963e..6f4d44d 100644 --- a/src/Plots.js +++ b/src/Plots.js @@ -302,18 +302,21 @@ function resetColors(data, isPie) { data.datasets[0].backgroundColor[i] = acceptedColor; } else { data.datasets[0].pointBackgroundColor[i] = acceptedColor; + data.datasets[0].pointBorderColor[i] = acceptedColor; } } else if (data.datasets[0].classification[i] === "rejected") { if (isPie) { data.datasets[0].backgroundColor[i] = rejedtecColor; } else { data.datasets[0].pointBackgroundColor[i] = rejedtecColor; + data.datasets[0].pointBorderColor[i] = rejedtecColor; } } else if (data.datasets[0].classification[i] === "ignored") { if (isPie) { data.datasets[0].backgroundColor[i] = ignoredColor; } else { data.datasets[0].pointBackgroundColor[i] = ignoredColor; + data.datasets[0].pointBorderColor[i] = ignoredColor; } } }