xAxis = g => g
.attr('transform', `translate(0,${innerHeight})`)
.call(d3.axisBottom(x).ticks(10).tickFormat(x => `${x}d`))
.call(g => g.select(".domain").remove())
.call(g => g.append('text')
.attr('x', innerWidth)
.attr('y', margin.bottom / 1.2)
.attr('fill', 'black')
.attr('text-anchor', 'end')
.style('font-size', 15)
.style('font-weight', 'bold')
.text('Days until deadline →'));