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

G element vs Parent SVG Element, D3 Course

In the video "Adding Axes to Your Visualization with Huston Hedinger" Huston says something along the lines of:

"We are creating some space between our G element which encloses ALL our elements and the SVG element, which is our parent element"

This is very confusing. If the G element encloses ALL our elements then this would make it the parent element. How can it enclose the SVG element and then the SVG element still be it's parent. I think the video discusses the topic of creating an Axis just fine, but this small detail is presented poorly and should be further elaborated on or rather it should be presented more meaningfully.