Tests not passing even with suggested answer

Tell us what’s happening:
I also dont understand where the 2 pixel margin would come in…
Your code so far

.bar {
  width: 25px;
  height: 100px;
  /* Add your code below this line */

  /* Add your code above this line */
  display: inline-block;
  background-color: blue;
  const dataset = [12, 31, 22, 17, 25, 18, 29, 14, 9];

    .attr("class", "bar")
   .style("height", (d) => (d * 10 + "px")) // Change this line
  **Your browser information:**

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

Challenge: Change the Presentation of a Bar Chart

Link to the challenge:

Actually this is what worked for me…
.style(“margin”, “2px”).style( “height”, (d) => (d * 10 + “px”)) // Change this line

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