xxxxxxxxxx
<html lang="en">
<head>
<meta charset="utf-8">
<title>Index Module 2</title>
<script type="text/javascript" src="https://d3js.org/d3.v3.js"></script>
<style type="text/css">
svg {
background-color: #CCFFCC;
}
</style>
</head>
<body>
<svg width="700" height="200">
<line x1="350" y1="85" x2="690" y2="85" stroke="blue" stroke-width="2.5"></line>
<line x1="350" y1="75" x2="690" y2="75" stroke="blue" stroke-width="1.5"></line>
<line x1="350" y1="95" x2="690" y2="95" stroke="#20184A" stroke-width="5"></line>
<rect x="345" y="150" width="350" height="50" fill="#668C58"></rect>
<polygon x="150" y="90" points="350,65,690,35,690,65" fill="#28730D"></polygon>
<circle cx="450" cy="125" r="25" fill="#F6F5CD"></circle><circle cx="500" cy="125" r="25" fill="#E80000"></circle>
<circle cx="550" cy="125" r="25" fill="#D6EBD6"></circle>
<circle cx="600" cy="125" r="25" fill="#CCE6D9"></circle>
<circle cx="650" cy="125" r="25" fill="#33524A"></circle>
<text x="360" y="190" fill="#FEFEFE" font-size="36" font-weight="regular" font-family="Tahoma">First Attempt</text>
</svg>
<script type="text/javascript">
//Load in contents of CSV file
d3.csv("CPI1314.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.js to a secure url
https://d3js.org/d3.v3.js