xAxis = g =>
g
.attr("transform", `translate(0, ${margin.top})`)
.call(d3.axisTop(x).ticks(4))
.call(g => g.select(".domain").remove())
.call(g =>
g
.append("text")
.attr("x", width - margin.right)
.attr("fill", "currentColor")
.attr("text-anchor", "middle")
.text("Commodity deforestation (ha) →")
)