I’m working in a project with a line graph that plots positive and negative values on the y axis. How can I make the zero line of the y axis bold? Here is a code snippet from my project:
// Add the Y Axis
svg
.append("g")
.attr("class", "y axis")
.attr("transform", `translate(${margin}, ${margin})`)
.attr("font-family", '"Roboto", "sans-serif"')
.call(yAxis)
.call((g) =>
g
.selectAll(".tick line")
.attr("class", "axis_bar")
.attr("stroke", "#556066")
)
.attr("stroke-dasharray", "5,5")
.append("text")
.attr("y", 15)
.attr("transform", "rotate(-90)");