xxxxxxxxxx
<html lang="en">
<head>
<meta charset="utf-8">
<title>D3 with SVG Elements</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>
<svg width="1000" height="500">
<rect x="150" y="60" width="100" height="100" fill="orange" />
<rect x="325" y="60" width="100" height="100" fill="orange" />
<polygon fill="lime" stroke="blue" stroke-width="5"
points="850,75 958,137.5 958,262.5
850,325 742,262.6 742,137.5" />
<line x1="742" y1="137.5" x2="850" y2="199.9" stroke="blue" stroke-width="5" />
<line x1="850" y1="199.9" x2="958" y2="137.5" stroke="blue" stroke-width="5" />
<line x1="850" y1="199.9" x2="850" y2="325" stroke="blue" stroke-width="5" />
<text x="200" y="275" fill="charcoal" font-size="42" font-weight="bold" font-family="Helvetica">getting crafty with SVG</text>
<rect x="123" y="375" width="325" height="75" rx="23" fill="none" stroke="red" stroke-width="33" />
</svg>
<script type="text/javascript">
// Your D3 code will go here
d3.csv("SF_Business&Industry.csv", function(data) {
console.log(data);
});
</script>
</body>
</html>
Modified http://d3js.org/d3.v3.js to a secure url
https://d3js.org/d3.v3.js