d3.select(div).selectAll("div")
.data(dataset)
.enter()
.append("div")
.attr("class", "bar")
.style("height", function(d) {
var barHeight = d * 5;
return barHeight + "px";
})
.style("background-color", function(d) {
if (d >= 15) {
return "cyan";
} else {
return "stealblue";
}
});