Change the internal usage of d3.scale