Difference Chart v4
This chart compares daily average temperatures in New York and San Francisco over four months. It uses a bivariate area chart with clipping to alternate colors: the area where New York is warmer than San Francisco is filled in green, while the area where San Francisco is warmer is filled in red. The SVG visualization is built with D3 v4, using a clipped area path to switch fill colors based on the sign of the temperature difference, a technique with roots in William Playfair’s 1786 work. The data is loaded from a TSV file with date, New York, and San Francisco temperature columns.
AI-generated descriptionA 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>