Skip to main content
100%

Full Difference Chart v5

✓ Published0🌍 Public
Dd3noob
Last edited Nov 29, 2019
Created on Nov 29, 2019

This example visualizes the daily difference in Leanpub book downloads between "R Programming for Data Science" and "The Elements of Data Analytic Style" from April to June 2015. The chart uses filled areas above and below a baseline to show which book has more daily sales, overlaid with two distinct line series for each book. Built with d3.v5 and rendered as SVG, the code uses `d3.area`, `d3.curveBasis`, `d3.nest`, and `d3.scaleTime`/`d3.scaleLinear`. Data is loaded from a CSV file via `d3.csv`.

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