Use d3.svg.brush to squish and stretch with the textLength attribute
squish and stretch