Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Mate Vegh
Mate Vegh
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!