Open gerardjk opened 3 years ago
Thanks @gerardjk. I found the same problem. I tried your solution and it did work. Do you happen to know why it worked that way?
Thanks @gerardjk! I'm guessing you're right, and this is something that changed about the API in v5 or newer. (The example here are only guaranteed to work with D3 v4.5.0, as included in this repo.)
I've tagged this issue and will leave it open, so if and when I update the book, I will be sure to catch this.
The code for tooltips seems to have changed between d3 versions.
Returns "Object Mouse Event" in the tooltip rather than the actual number. I got it to work by changing function(d) to function(e,d)