x1Axis = g =>
g
.attr("transform", `translate(0, ${height - margin.bottom})`)
.call(
d3
.axisBottom(x1)
.ticks(Math.min(width / 40, 10))
.tickFormat(d3.format(".0%"))
)
.call(g => g.select(".domain").remove())
.call(g =>
g
.append("text")
.attr("x", width)
.attr("y", margin.bottom - 4)
.attr("fill", "currentColor")
.attr("text-anchor", "end")
.text("Percent of votes won by " + rep.last_name)
)