d3.select('#chart')
.selectAll("div")
.data([4, 8, 15, 16, 23, 42])
.enter()
.append("div")
.style("height", (d)=> d + "px")
<div id="chart"></div>
#chart div {
display: inline-block;
background: #4285F4;
width: 20px;
margin-right: 3px;
}