Simple Difference Chart v6
This visualization compares the daily change in downloads for two Leanpub books, "R Programming for Data Science" and "The Elements of Data Analytic Style," using a difference chart. It shows the difference between the two series over time, with areas above and below the baseline indicating which book had a higher daily increase. The chart uses D3 v6 with `d3.select`, `d3.group`, and the `d3.area` API for area and line rendering in SVG. Data is loaded from a CSV file, and the y-axis is fixed at 0–1400.
AI-generated descriptionThe graph above shows a simple example of a difference chart used as an example in the book D3 Tips and Tricks. It is based on the difference chart example produced by Mike Bostock.
The graph shows the difference in the number of daily downloads between R Programming for Data Science by Roger Peng and The Elements of Data Analytic Style by Jeff Leek