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,