xxxxxxxxxx
<html lang="en">
<head>
<meta charset="utf-8">
<title>Loading CSV Data with D3</title>
<script type="text/javascript" src="https://d3js.org/d3.v3.js"></script>
</head>
<body>
<!-- <p>Not much to see here; try looking in the console!</p> -->
<svg width="700" height="700">
<line x1="50" y1="100" x2="200" y2="100" stroke="blue" stroke-width="6" />
<rect x="300" y="300" width="300" height="300" fill="#aa0000" />
<circle cx="200" cy="440" r="30" fill="violet" />
</svg>
<script type="text/javascript">
//Load in contents of CSV file
d3.csv("ChicagoSocEconIndicators2008_12.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