Change the Presentation of a Bar Chart Broken

Tell us what’s happening:
My solution was right but It wasn’t passing the test. I even copied the solution from the “Get a hint” section of this website and that still didn’t work.

  **Your code so far**

<style>
.bar {
  width: 25px;
  height: 100px;
  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>
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14092.77.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.107 Safari/537.36

Challenge: Change the Presentation of a Bar Chart

Link to the challenge:

The solution works fine for me. Are you using extensions that interfere with the test suite? Ad blockers will sometimes erroneously block parts of the challenges.

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