yAxis = g => g
.attr("transform", `translate(${margin.left + 1},0)`)
.call(d3.axisLeft(y).ticks(6).tickSize(yTickSize))
.attr("stroke-opacity", 0.05)
.call(g => g.selectAll(".tick line").clone()
.attr("stroke-opacity", 0.05)
.attr("x2", width - margin.left - margin.right))
.call(g => g.select(".tick:first-of-type")
.attr("stroke-opacity", 1))
.call(g => g.selectAll(".tick text")
.style("text-anchor", "start")
.attr("x", -yTickSize)
.attr("y", -9)
.attr("class", "xsmall-copy"))
.call(g => g.select(".domain").remove())
.call(g => g.select(".tick:last-of-type text").clone()
.attr("x", `${yLabelOffset}`)
.attr("text-anchor", "start")
.attr("class", "xsmall-copy font-bold")
.text(data.y))