Note: still a work in progress
In his heat-histogram, Adam Pierce shows how using masks lets you draw an area with multiple colors using just one path.
Here this method is applied to explore the weekly mileage I ran in 2014. Instead of updating the mask itself like in Adam's bl.ocks, the underlying masked paths are redrawn depending on the threshold values from the inputs, so the path can be selectively colored.
The bars are the distance (yellow) and elevation (blue) of the individual runs, hover on them to get more details.
https://d3js.org/d3.v4.min.js
https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js
https://cdnjs.cloudflare.com/ajax/libs/moment-range/3.0.3/moment-range.min.js