Problem in Data Visualization D3

Hi community,

In this challenge I am getting an error: https://www.freecodecamp.org/learn/data-visualization/data-visualization-with-d3/add-document-elements-with-d3

I think I am doing the right approach, but no clue with the error message, thanks for your help:

<body>
  <script>
    // Add your code below this line
    d3.select("body")
      .append("h1")
      .text("Learning D3"); 
    // Add your code above this line
  </script>
</body>

Get this error

Blockquote
TypeError: undefined is not an object (evaluating ‘e.presets’)

Hello~!

That code block is passing the tests on my end. I’m not sure why you’re throwing an error.

1 Like

Thanks, it is working fine in Brave browser, just tried, but not working in Safari… so the issue is only in Safari. Thanks.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.