d3-like scale functions