Difference Chart
This difference chart compares daily temperatures in New York and San Francisco, using a bivariate area encoding where the area between the two series is filled green when New York is warmer and red when San Francisco is warmer. The visualization is implemented with D3 v4 and rendered as SVG, employing clipping to cleanly alternate the fill colors based on which city’s temperature is higher. Data is loaded from a tab-separated file with date, New York, and San Francisco columns.
AI-generated descriptionDifference Chart
A v4 update to <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/3894205'>Difference Chart</a>
This variation of a bivariate area chart uses clipping to alternate colors. When New York is warmer than San Francisco, the difference between the two is filled in green. When San Francisco is warmer, the difference is filled in red. A similar technique was used by William Playfair all the way back in 1786.
forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/3894205'>Difference Chart</a>
forked from <a href='http://bl.ocks.org/alexmacy/'>alexmacy</a>'s block: <a href='http://bl.ocks.org/alexmacy/67a5211cf2c5cbda74501ce36d85ba4c'>Difference Chart v4</a>