Change the Presentation of a Bar Chart issues

Tell us what’s happening:
Basically, the code doesn’t go through, even though I’ve tried with different browsers.

  **Your code so far**

<style>
.bar {
  width: 25px;
  height: 100px;
  /* Add your code below this line */
  margin:2px;
  
  /* Add your 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")) // Change this line
</script>
</body>
  **Your browser information:**

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

Challenge: Change the Presentation of a Bar Chart

Link to the challenge:

Well, I tried your code on the challenge and it passes the tests just fine. I did it on chrome. Maybe you should try to clean your browser cache memory and see if it works. Good luck!

I used my mobile browser instead and it passed, I think I will have to use third-party app to clear cache and some settings.

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