Difference Chart
This chart compares daily temperatures in New York and San Francisco over a four-month period using a bivariate area chart. Two overlaid lines show the temperature series for each city, while the area between them is filled in green when New York is warmer and red when San Francisco is warmer, using clipping to alternate colors based on the difference. The visualization is rendered in SVG with D3 v4 and is a modern update to an original block by Mike Bostock. The data is loaded from a TSV file containing date, New York, and San Francisco temperature values.
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>
forked from <a href='http://bl.ocks.org/AlainRo/'>AlainRo</a>'s block: <a href='http://bl.ocks.org/AlainRo/a13b672ef688bf238568ca7aa42dde15'>Difference Chart v4</a>