From 5fcac8747712e4d6a7bd0ed50f20eec1314a870d Mon Sep 17 00:00:00 2001 From: ChintzRuparel <51440734+ChintzRuparel@users.noreply.github.com> Date: Tue, 11 Oct 2022 13:43:44 +0530 Subject: [PATCH 1/2] New Color Scheme Updated --- src/main/resources/vue/components/_charts.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/vue/components/_charts.vue b/src/main/resources/vue/components/_charts.vue index 2822eb8..52239d0 100644 --- a/src/main/resources/vue/components/_charts.vue +++ b/src/main/resources/vue/components/_charts.vue @@ -95,7 +95,7 @@ }); function createColorArray(length) { - const colors = ["#54ca76", "#f5c452", "#f2637f", "#9261f3", "#31a4e6", "#55cbcb"]; + const colors = ["#1e81b0", "##eeeee4", "##e28743", "##eab676", "##76b5c5", "##21130d", "#873e23", "#d5817c"]; let array = [...Array(length).keys()].map(i => colors[i % colors.length]); // avoid first and last colors being the same if (length % colors.length === 1) { From 0d73f9a86b6ff46fbaee8692541a1da868e99c67 Mon Sep 17 00:00:00 2001 From: ChintzRuparel <51440734+ChintzRuparel@users.noreply.github.com> Date: Tue, 11 Oct 2022 23:16:55 +0530 Subject: [PATCH 2/2] Double Hash (#) error resolved Just a typo --- src/main/resources/vue/components/_charts.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/vue/components/_charts.vue b/src/main/resources/vue/components/_charts.vue index 52239d0..8819423 100644 --- a/src/main/resources/vue/components/_charts.vue +++ b/src/main/resources/vue/components/_charts.vue @@ -95,7 +95,7 @@ }); function createColorArray(length) { - const colors = ["#1e81b0", "##eeeee4", "##e28743", "##eab676", "##76b5c5", "##21130d", "#873e23", "#d5817c"]; + const colors = ["#1e81b0", "#eeeee4", "#e28743", "#eab676", "#76b5c5", "#21130d", "#873e23", "#d5817c"]; let array = [...Array(length).keys()].map(i => colors[i % colors.length]); // avoid first and last colors being the same if (length % colors.length === 1) {