Skip to main content
100%

Full Difference Chart v7

✓ Published0🌍 Public
Dd3noob
Last edited Jun 19, 2021
Created on Jun 19, 2021

This visualization compares daily download changes for two Leanpub books, Science and Style, highlighting when one outsells the other. It uses a difference chart where the area between the two lines is filled with distinct colors—orange when Science is above Style and green when Style leads. The data comes from a CSV file and is rendered as SVG using D3 v7. The code uses `d3.area`, `d3.scaleTime`, and `d3.axisBottom` to construct the chart, with clip paths separating the above and below regions.

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