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.


.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;


.bar {
  width: 20px;
  margin: 2px;
  display: inline-block;
  background-color: blue;
  const dataset = [12, 31, 22, 17, 25, 18, 29, 14, 9];"body").selectAll("div")
    .attr("class", "bar")
    .style("height", (d) => (d*10 + 'px'))


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.