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.

hettlage (136) [Avatar] Offline
It seems that the cities.csv example in section 2.1.4 requires a parseInt() call in the accessor function to work properly:

d3.min(data, function (el) {return parseInt(el.population)});
elijah.meeks (127) [Avatar] Offline
Re: psrseInt required in cities.csv example
You're right. If it's any consolation, I've got parseInt in my actual code...

I think I need to put in capital letters that any d3.csv loads all data as strings. It's been the cause of many a heartbreak on my end.

I'll fix it in the next revision. Thanks again!