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="1500" height="500">
<line x1="50" y1="150" x2="800" y2="150" stroke="blue" />
<line x1="50" y1="155" x2="800" y2="155" stroke="blue" />
<line x1="50" y1="195" x2="800" y2="195" stroke="blue" />
<line x1="50" y1="200" x2="800" y2="200" stroke="blue" />
<line x1="150" y1="170" x2="250" y2="170" stroke="blue" />
<line x1="150" y1="180" x2="250" y2="180" stroke="blue" />
<line x1="150" y1="170" x2="150" y2="180" stroke="blue" />
<line x1="250" y1="170" x2="250" y2="180" stroke="blue" />
<line x1="350" y1="170" x2="450" y2="170" stroke="blue" />
<line x1="350" y1="180" x2="450" y2="180" stroke="blue" />
<line x1="350" y1="170" x2="350" y2="180" stroke="blue" />
<line x1="450" y1="170" x2="450" y2="180" stroke="blue" />
<line x1="550" y1="170" x2="650" y2="170" stroke="blue" />
<line x1="550" y1="180" x2="650" y2="180" stroke="blue" />
<line x1="550" y1="170" x2="550" y2="180" stroke="blue" />
<line x1="650" y1="170" x2="650" y2="180" stroke="blue" />
</svg>
<script type="text/javascript">
//Load in contents of CSV file
d3.csv("traffic counts in the East Midlands 2007 - 2011.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