Skip to main content
100%

Full Difference Chart v6

✓ Published0🌍 Public
Dd3noob
Last edited Sep 18, 2020
Created on Sep 18, 2020

A full difference chart compares the daily Leanpub download counts for two books, R Programming for Data Science and The Elements of Data Analytic Style, by computing the difference in their daily sales over a two-month period. The chart uses stacked area segments, colored orange and green, to highlight when one book outsells the other, along with two overlaid line curves for each book’s daily change. Built with D3 v6, it loads CSV data via `d3.csv`, groups entries by date, and creates areas using `d3.area` with clipping paths, while axes use `d3.axisBottom` and `d3.axisLeft`.

AI-generated description

The 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

mit Licensed

Similar vizzes