Issue in Data Visualization with D3: Change the Presentation of a Bar Chart

The tests are failing, even after giving the desired logic. I tried by getting a hint, and the solution provided also doesn’t pass the test cases.

Please suggest how to do it.

Code:

.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>
.bar {
  width: 20px;
  margin: 2px;
  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>

Browser:

User Agent is: Google Chrome Version 81.0.4044.138.

Challenge: Change the Presentation of a Bar Chart

Link to the challenge:

Hi there the test passes for me. Try using a different browser.