The d3.scale-threshold function from d3