I have been trying to use the above 3 functions together for a D3 axis to pass the value for the ticks on the axis.
const xAxis = d3.axisBottom().scale(xScale