xxxxxxxxxx
<html lang="en">
<head>
<!--https://gist.github.com/ssmaroju/fd73d0840a3b4772c076-->
<!--bl.ocks.org/ssmaroju/fd73d0840a3b4772c076-->
<meta charset="utf-8">
<title>Loading CSV Data with D3</title>
<script type="text/javascript" src="https://d3js.org/d3.v3.js"></script>
<style type="text/css">
body {
background-color: white;
}
svg {
background-color: white;
}
</style>
</head>
<body>
<svg width="500" height="200">
<circle cx="300" cy="140" r="50" fill="violet" />
</svg>
<p>Not much to see here; try looking in the console!</p>
<script type="text/javascript">
//Load in contents of CSV file
d3.csv("roadac2012_AnnexureII.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