d3-book icon indicating copy to clipboard operation
d3-book copied to clipboard

Code examples for “Interactive Data Visualization for the Web”

Results 16 d3-book issues
Sort by recently updated
recently updated
newest added

Line 36 - in d3 v5 it has changed to: d3.csv("mauna_loa_co2_monthly_averages.csv", rowConverter).then(function(data) {...} ;

v5

Line 142 - D3 eliminated d3.schemeCategory20 it will work with d3.schemeCategory10.

v5

In Chapter 16, it's not clear why the anonymous function passed to `stack.keys(keys).value()` is given a name. Line 117 reads: https://github.com/alignedleft/d3-book/blob/4cbba7c74ebd29e6a07ec25150bf0ddb6e108112/chapter_16/01_initial_chart.html#L117 The full block is ```javascript //Tell stack function where...

next book update

Line 192 should add half a bar width to the horizontal starting position of labels in the `enter()` selection, otherwise they are incorrectly aligned with the bar during the transition.

I'm not sure if this qualifies as an issue, but as I was working through chapter 8, I had some trouble positioning my axes to get the zeroes to intersect...

next book update

The original code for `freakout()` has: ``` var colors = d3.schemeCategory20; var colorIndex = Math.round(Math.random() *20); ``` [For D3v5 and newer](https://github.com/d3/d3/blob/master/CHANGES.md): > D3 no longer provides the d3.schemeCategory20* categorical color...

v5