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>
<style type="text/css">
svg {
background-color: #D9D9C3;
}
</style>
</head>
<body>
<svg width="675" height="150">
<ellipse cx="10" cy="10" rx="100" ry="100" fill="#B8CCB8" />
<ellipse cx="75" cy="75" rx="50" ry="50" fill="#D9FFFF" />
<text x="70" y="90" fill="charcoal" font-size="42" font-weight="bold" font-family="Helvetica">International Trade Exports</text>
</svg>
<script type="text/javascript">
//Load in contents of CSV file
d3.csv("internationaltradeexports.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