I am trying to shift the x-axis ticks so that they are aligned with each bar rect. The idea is that the bars correspond to an event between the hours of x - y and the ticks are a little mis-leading. I've tried to use tickFormat()
but that seems to only effect the labels. I've also looked through the D3 docs as the react-vis docs mention them quite a bit.
current chart
So ideally the bar that is centered on the 10am position would be shifted to the right so its centered between 10am - 11am. Is there another function that I can use to accomplish this?
Using @Justin's answer above, I was able to nudge my XAxis labels using
transform
like so: