block by mimno 93337b5bd77d4217d0869b5b58c45243

Divided Lines from a Scale

Full Screen

This is a simplified version of Elijah Meeks’ Divided Line II block that uses a d3 threshold scale instead of a custom parameters function. The dividedLine function takes an aesthetic function as a parameter, which unpacks an attribute of the point object (y, in this case) and applies the scale.

index.html