My code is right according to read and search method guide but not passing

Tell us what’s happening:

Your code so far


<style>
.bar {
  width: 25px;
  height: 100px;
  /* Only change code below this line */
      margin:2px;
  
  /* Only change code above this line */
  display: inline-block;
  background-color: blue;
}
</style>
<body>
<script>
  const dataset = [12, 31, 22, 17, 25, 18, 29, 14, 9];

  d3.select("body").selectAll("div")
    .data(dataset)
    .enter()
    .append("div")
    .attr("class", "bar")
    .style("height", (d) => (d * 10 + "px"))

</script>
</body>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36.

Challenge: Change the Presentation of a Bar Chart

Link to the challenge:

@meeramenon07 You need to multiply d to 10 at the end. ignore this!

your code is correct!

Your code passes the tests in my browser. Maybe just copy your code, refresh the page and reset the code, then paste your answer back in.

Hello there,

If your code is correct, and not passing the tests, here are some things to be aware of:

  1. We recommend the latest stable release of Chrome for the fCC curriculum.
  2. Browser extensions can affect the tests. Disable them.
  3. Ensure your default browser zoom level is set to 100%

Hope this helps