That's a good question - with d3fc we have a component for label layout, but this is designed for labels within the plot area, avoiding overlaps / collisions etc ...
https://d3fc.io/api/label-layout-api.html
I have thought about creating a more advanced axis that provides more powerful tick label layout. We already have our own axis component:
https://d3fc.io/api/axis-api.html
The purpose of this is to support the decorate pattern.