The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

SSteve (24) [Avatar] Offline
These lines in 4.2.1 are backwards:
xExtent = d3.extent(scatterData, function(d) {return d.friends});
yExtent = d3.extent(scatterData, function(d) {return d.salary});

Friends are on the y-axis and salary is on the x-axis so these should be:
xExtent = d3.extent(scatterData, function(d) {return d.salary});
yExtent = d3.extent(scatterData, function(d) {return d.friends});
elijah.meeks (127) [Avatar] Offline
Re: Axis mixup in 4.2.1
Thanks, Steve, I'll make sure to flip them.