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>
<meta charset="utf-8">
<title>SVG</title>
<style type="text/css">
body {
background-color: #ddddff;
}
svg {
background-color: white;
}
</style>
</head>
<body>
<svg width="500" height="190">
<line x1="0" y1="0" x2="0" y2="190" stroke="blue" stroke-width="3" />
<line x1="50" y1="0" x2="50" y2="190" stroke="blue" stroke-width="3" />
<line x1="100" y1="0" x2="100" y2="190" stroke="blue" stroke-width="3" />
<line x1="150" y1="0" x2="150" y2="190" stroke="blue" stroke-width="3" />
<line x1="200" y1="0" x2="200" y2="190" stroke="blue" stroke-width="3" />
<line x1="250" y1="0" x2="250" y2="190" stroke="blue" stroke-width="3" />
<line x1="300" y1="0" x2="300" y2="190" stroke="blue" stroke-width="3" />
<line x1="350" y1="0" x2="350" y2="190" stroke="blue" stroke-width="3" />
<line x1="400" y1="0" x2="400" y2="190" stroke="blue" stroke-width="3" />
<line x1="450" y1="0" x2="450" y2="190" stroke="blue" stroke-width="3" />
<line x1="0" y1="0" x2="500" y2="0" stroke="blue" stroke-width="3" />
<line x1="0" y1="50" x2="500" y2="50" stroke="blue" stroke-width="3" />
<line x1="0" y1="100" x2="500" y2="100" stroke="blue" stroke-width="3" />
<line x1="0" y1="150" x2="500" y2="150" stroke="blue" stroke-width="3" />
<line x1="0" y1="200" x2="500" y2="200" stroke="blue" stroke-width="3" />
<rect x="0" y="0" width="100" height="100" fill="black" />
<circle cx="450" cy="140" r="50" fill="blue" />
<text x="50" y="180" fill="charcoal" font-size="42" font-weight="bold" font-family="Helvetica">Something Wrong!</text>
</svg>
<body>
<p>Not much to see here; try looking in the console!</p>
<script type="text/javascript">
//Load in contents of CSV file
d3.csv("export.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