From 9c902df94976ffd8419c861e93c6fbe1346b7459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joa=CC=83o=20Sobral?= Date: Wed, 11 Dec 2024 16:38:43 +0100 Subject: [PATCH] =?UTF-8?q?feat=20=E2=9A=A1=EF=B8=8F:=20remove=20bar=20ins?= =?UTF-8?q?tead=20of=20hiding=20it?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/charts/shared/axis-width-linear.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/charts/shared/axis-width-linear.tsx b/app/charts/shared/axis-width-linear.tsx index aa8a5626d..5a22fe3bf 100644 --- a/app/charts/shared/axis-width-linear.tsx +++ b/app/charts/shared/axis-width-linear.tsx @@ -65,9 +65,10 @@ export const AxisWidthLinear = () => { .attr("fill", labelColor) .attr("dy", labelFontSize + 10) .attr("text-anchor", "middle"); - g.select("path.domain") - .attr("stroke", gridColor) - .attr("opacity", chartType === "bar" ? 0 : 1); + g.select("path.domain").attr("stroke", gridColor); + if (chartType === "bar") { + g.select("path.domain").remove(); + } } }, [ chartType,