xAxis = g =>
g
.attr("transform", `translate(0, ${height - margin.bottom})`)
.call(d3.axisBottom(x).tickFormat(d3.format(".0%")))
.call(g =>
g
.select(".tick:last-of-type text")
.clone()
.attr("x", 3)
.attr("dy", "2em")
.attr("text-anchor", "end")
.attr("font-weight", "bold")
.text("Vote share for " + candidateName)
)