xxxxxxxxxx
<html lang="en">
<head>
<meta charset="utf-8">
<title>Loading CSV Data with D3</title>
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
</head>
<style>
.svg {
background: #fff1e0;
}
</style>
<body>
<svg class="svg" width="960" height="500">
<line x1="20" y1="460" x2="920" y2="460" stroke="#C1B8B8" stroke-width="3" />
<rect x="20" y="20" width="200" height="200" fill="#95BFC4" />
<circle cx="720" cy="420" r="30" fill="#B36C80" />
<circle cx="780" cy="420" r="30" fill="#E8A7A6" />
<circle cx="840" cy="420" r="30" fill="#D2716D" />
<circle cx="900" cy="420" r="30" fill="#D09D93" />
<text x="240" y="50" fill="#C1B8B8" font-size="32" font-weight="plain" font-family="Helvetica">Just messing with some basic svg elements</text>
</svg>
<script type="text/javascript">
//Load in contents of CSV file
d3.csv("RHI_data.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