xxxxxxxxxx
<html lang="en">
<head>
<meta charset="utf-8">
<title>Pat's D3 with SVG Elements and loading Infant Mortality Data</title>
<script type="text/javascript" src="https://d3js.org/d3.v3.js"></script>
<style type="text/css">
body {
background-color: #ddddff;
}
svg {
background-color: white;
}
</style>
</head>
<body>
<h1>Nothing here except this heading</h1>
<svg xmlns="https://www.w3.org/2000/svg" width="300" height="200">
<circle cx="100" cy="100" r="50" fill="red" />
<rect x="100" y="100" width="85" height="50" fill="blue"
stroke="black" stroke-width="1" />
<text x="55" y="180" fill="charcoal" font-size="29" font-weight="bold" font-family="Helvetica">Quantime</text>
</svg>
<script type="text/javascript">
//Load in contents of CSV file
d3.csv("IM.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