xxxxxxxxxx
<html lang="en">
<head>
<meta charset="utf-8">
<title>Life and SVG</title>
<script type="text/javascript" src="https://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<p>With Life, is there possibilty?</p>
<svg width="500" height="500">
<rect x="0" y="0" width="500" height="500" fill="rgba(147,161,158,.25"/>
<rect x="150" y="0" width="130" height="500" fill="rgba(255,183,51,1)"/>
<rect x="10" y="0" width="10" height="500" fill="rgba(147,161,158,1)"/>
<rect x="50" y="0" width="10" height="500" fill="rgba(147,161,158,1)"/>
<rect x="90" y="0" width="10" height="500" fill="rgba(147,161,158,1)"/>
<rect x="130" y="0" width="10" height="500" fill="rgba(147,161,158,1)"/>
<rect x="170" y="0" width="10" height="500" fill="rgba(147,161,158,1)"/>
<rect x="210" y="0" width="10" height="500" fill="rgba(147,161,158,1)"/>
<rect x="250" y="0" width="10" height="500" fill="rgba(147,161,158,1)"/>
<rect x="290" y="0" width="10" height="500" fill="rgba(147,161,158,1)"/>
<rect x="330" y="0" width="10" height="500" fill="rgba(147,161,158,1)"/>
<rect x="370" y="0" width="10" height="500" fill="rgba(147,161,158,1)"/>
<rect x="410" y="0" width="10" height="500" fill="rgba(147,161,158,1)"/>
<rect x="450" y="0" width="10" height="500" fill="rgba(147,161,158,1)"/>
<rect x="490" y="0" width="10" height="500" fill="rgba(147,161,158,1)"/>
<script type="text/javascript">
//Load in contents of CSV file
d3.csv("life-sentences-by-state.csv", function(data) {
//Now CSV contents have been transformed into
//an array of JSON objects.
//Log 'data' to the console, for verification.
console.log(data);
});
</script>
</body>
</html>
Modified http://d3js.org/d3.v3.min.js to a secure url
https://d3js.org/d3.v3.min.js