Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript D3.js Data Binding with D3.js Data Binding

In this tutorial, I have found out that viz.selectAll('circles') is not listed in the html script. it is only circle

All I see is viz.selectAll('circle') viz.selectAll('circle').data(data) does not work also

1 Answer

Máté Végh
Máté Végh
25,607 Points

Hi Michael,

This caused me a headache too, to be honest. I almost wrote a bug report to the Treehouse support. But after replaying the video a couple of times, I finally spotted that Huston had set up a breakpoint in the sources panel by clicking on the 19th line and then refreshed the page, which paused the JavaScript execution from that point. I didn't notice that because I personally never used that part of the devtools, so I didn't know what that does. So, if you do the same, it will work just fine.

And for the circle/circles question: It's a ghost selection and it's not related to the actual circle SVG element, so it could be named anything. This ghost selection is still confusing me, however.

Anyway, hope I could help!