Create DOM Elements with D3 v4

Share this video with your friends

Send Tweet

Change is good, but creating from scratch is even better. This lesson shows you how to create DOM elements from D3 and insert them into your document as needed. You’ll officially be on your way to creating data visualizations!

GreenAsJade
GreenAsJade
~ 7 years ago

The other commenters might have been saying the same thing, but I'm trying to understand whether the second .append is applying to the 'title' or to the 'div'?

In other words, how is the second append different to the .html just above it? It is applying to the same thing (the div), in which case (as other said) it should be intented the same?

Since you make such a point of this, I think that if you have it wrong in the video, you should fix it.