mbostock
This variation of a threshold encoding demonstrates how to use clipping to change the color of a line based on a y-threshold.
https://d3js.org/d3.v3.min.js