From c3589a34225381388c1600fe61ea023dab8beb88 Mon Sep 17 00:00:00 2001 From: NicolasRichel Date: Thu, 21 Apr 2022 10:04:39 +0200 Subject: [PATCH] fix(charts): remove commented code --- .../BIMDataMultiplePieChart/BIMDataMultiplePieChart.vue | 8 -------- .../BIMDataSimplePieChart/BIMDataSimplePieChart.vue | 7 ------- 2 files changed, 15 deletions(-) diff --git a/src/BIMDataComponents/BIMDataMultiplePieChart/BIMDataMultiplePieChart.vue b/src/BIMDataComponents/BIMDataMultiplePieChart/BIMDataMultiplePieChart.vue index 67de45dd..417a8dfc 100644 --- a/src/BIMDataComponents/BIMDataMultiplePieChart/BIMDataMultiplePieChart.vue +++ b/src/BIMDataComponents/BIMDataMultiplePieChart/BIMDataMultiplePieChart.vue @@ -80,14 +80,6 @@ export default { barsData: { type: Array, default: () => [], - // validator(value) { - // return value?.every( - // barData => - // typeof barData?.color === "string" && - // barData?.percentage <= 100 && - // barData?.percentage >= 0 - // ); - // }, }, }, computed: { diff --git a/src/BIMDataComponents/BIMDataSimplePieChart/BIMDataSimplePieChart.vue b/src/BIMDataComponents/BIMDataSimplePieChart/BIMDataSimplePieChart.vue index 33c038fc..0d45f671 100644 --- a/src/BIMDataComponents/BIMDataSimplePieChart/BIMDataSimplePieChart.vue +++ b/src/BIMDataComponents/BIMDataSimplePieChart/BIMDataSimplePieChart.vue @@ -30,13 +30,6 @@ export default { barsData: { type: Array, default: () => [], - // validator(barsData) { - // return ( - // barsData?.every(barData => typeof barData?.color === "string") && - // barsData?.reduce((sum, barData) => sum + barData.percentage, "0") <= - // "100" - // ); - // }, }, barDistanceFromCenter: { type: Number,