Add Document Elements with D3 help

Add Document Elements with D3 help
0

#1

Tell us what’s happening:

Your code so far


<body>
  <script>
    // Add your code below this line

<h1>

Learning D3
    
</h1>

    d3.select ("h1")
      .append ("h1")
      .text("Learning D3")
  

    
    // Add your code above this line
  </script>
</body>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/data-visualization/data-visualization-with-d3/add-document-elements-with-d3


#2

It looks as if you’ve selected h1 and then also appended h1. In fact, you need to select something different. Check the instructions carefully.

Hope that helps!


#3

Also, this part of your code is not necessary. You are using d3 to add that code, so typing it in separately to start is redundant.