yAxis = (g,scale, label) => {
g
.call(d3.axisLeft(scale).ticks(10).tickSize(width).tickFormat(d3.format("$.0f")))
.attr('transform', `translate(${margin.left + width+5}, 0)`)
.call(g => g.selectAll(".domain").remove())
g
.append("text")
.text(label)
.attr("fill", "#333")
.attr("text-anchor", "middle")
.style("font-size", 15)
.attr('transform', `translate(${margin.left*.5}, ${scale.range()[0]/2}) rotate(-90)`)
}