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:
see also: https://bl.ocks.org/ee2dev/fc880e1cfbb80f649878f3d5b9e8ed93