Solution not running: Data Visualization with D3 - Add Inline Styling to Elements

Tell us what’s happening:

Even the provided solution is not working.

output: // running tests Your

h2

elements should have a

font-family

of

verdana

. // tests completed

Your code so far

<body>
  <script>
    const dataset = [12, 31, 22, 17, 25, 18, 29, 14, 9];
    
    d3.select("body").selectAll("h2")
      .data(dataset)
      .enter()
      .append("h2")
      .text((d) => (d + " USD"))
      
      .style('font-family', 'verdana')
      
  </script>
</body>

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0

Challenge Information:

Data Visualization with D3 - Add Inline Styling to Elements

Hi! Your code passes for me. Try to clean cache, cookies, disable browser extentions or use another browser