Tell us what’s happening:
Describe your issue in detail here.
I don’t understand.
The bars are not showing, and I am failing all the test
What am i doing wrong?
Your code so far
var data = [4, 8, 15, 16, 23, 42];
const svg = d3.select("body")
.append("svg")
.attr("width", 100)
.attr("height", 500);
svg.selectAll("rect")
.data(data)
.enter()
.append("div")
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Challenge Information:
Data Visualization Projects - Visualize Data with a Bar Chart