fresh block
license: mit
Built with blockbuilder.org
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v4.min.js"></script>
</head>
<body>
<svg>
<rect />
<rect />
<rect />
<rect />
</svg>
<script>
// Feel free to change or delete any of the code you see in this editor!
var data = [100,200,300,400]
var height = 1000
d3.selectAll('rect')
.data(data)
.attr('x', (d,i) => i * 10)
.attr('y', d => height -d)
.attr('height', d => d)
.attr('width', 10)
.attr('fill','blue')
.attr('stroke','#fff');
</script>
</body>