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

Regarding global variable dataset, I found I had to define var dataset = [], and use dataset.push(data). If I did the same as the book, the dataset can only have...

question

Original code: `var dragging = function(d) { ` ` //Log out d3.event, so you can see all the goodies inside ` ` //console.log(d3.event);` It should be `function(e,d)` and `console.log(e)` and...

next book update
v5

The code for tooltips seems to have changed between d3 versions. ```javascript .on("mouseover", function(d) { //Get this bar's x/y values, then augment for the tooltip var xPosition = parseFloat(d3.select(this).attr("x")) +...

v5

The "Function-level scope" section of Chapter 3 (second edition, accessed on O'Reilly) mentions the following: > With block-level scope, our `i` would exist only within the context of the for...

The link to the MDN CSS Selectors docs doesn't work in the second edition on O'Reilly: > For details on additional selectors, see the [Mozilla Developer Network](http://mzl.la/V27Mcr). The shortlink http://mzl.la/V27Mcr...

Chapter 2 of the online version of this book has an issue with the URL for the official D3 website. It is listed as http://www.d3js.org/, which will result in an...

https://github.com/scotthmurray/d3-book/blob/4cbba7c74ebd29e6a07ec25150bf0ddb6e108112/chapter_07/09_time_scale.html#L36 The following line of code did not work for me: d3.csv("time_scale_data.csv", rowConverter, function(data) { Instead, the following code worked for me what I figured out: d3.csv("time_scale_data.csv", rowConverter).then( function(data) {...

v5

Using selectAll should remove extra tool tips created when a sort is running. I attached a picture of my after a sort. ![Screenshot from 2019-12-07 07-49-37](https://user-images.githubusercontent.com/11838181/70380889-2b9b7180-1910-11ea-814e-292c58b4f619.png)

I had to change: `d3.csv("time_scale_data.csv", rowConverter, function(data) {...})` to: `d3.csv("time_scale_data.csv", rowConverter).then(function(data) {...})` to get it to work.

next book update
v5

Hey! Thanks for the great work with the book - making my way through it now. Similar to Issue #34 , a change needs to be made when making a...

v5