Utility to make working with d3 scales less painful