Built with blockbuilder.org
xxxxxxxxxx
<head>
<meta charset="utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script>
<style>
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; }
svg { width:100%; height: 100% }
</style>
</head>
<body>
<div id="wrapper">
</div>
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script>
var svg = d3.select("body").append("svg")
svg.append("rect")
.attr({x: 10, y: 0, width: 500, height: 200})
.style({ fill: "#1ea1b2"})
svg.append("rect")
.attr({x:10, y: 110, width: 500, height: 80})
.style({ fill: "#d5b039"})
svg.append("rect")
.attr({x: 10, y: 200, width: 500, height: 120})
.style({ fill: "#1ea1b2"})
svg.append("polyline") // attach a polyline
.style("stroke", "black") // colour the line
.style("fill", "black") // remove any fill colour
.attr("points", "10,0, 10,300, 200,150")
</script>
</body>
Modified http://d3js.org/d3.v3.min.js to a secure url
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js
https://d3js.org/d3.v3.min.js