xAxis = (text,scale)=>g => g
.attr("transform", `translate(${margin.left},${height-margin.bottom+5})`)
.call(d3.axisBottom(scale).ticks(10))
.call(g => g.append("text")
.classed("axis-label",true)
.attr("fill","currentColor")
.attr("y", 40)
.attr("x",((width-margin.right-margin.left)/2))
.attr("text-anchor", "middle")
.text(text))