JSFiddle - React, Tailwind, and code Playground

HTML

<script type="text/javascript" src="http://d3js.org/d3.v3.min.js">
</script>

CSS

div.bar {
				display: inline-block;
				width: 20px;
				height: 75px;
				background-color: teal;
			}

JavaScript

var dataset = [ 5, 10, 15, 20, 25 ];

d3.select("body").selectAll("div")
    .data(dataset)
    .enter()
    .append("div")
    .attr("class", "bar");