Alignment of text labels - 2
This is an example how to compute the position of text labels when the axis is rescaled.
The text labels and the ticks of the axis are transitioned to the destination while satisfying:
- that the labels do not vertically overlap with each other
- that the labels stay vertically within a give frame
- that the labels are transitioned left or right of the new element depending on the empty space
see also: https://bl.ocks.org/ee2dev/fc880e1cfbb80f649878f3d5b9e8ed93