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>
<body>
<p><meta charset="utf-8">
<title>SVG Example</title>
<script type="text/javascript" src="https://d3js/d3.v3.js"></script>
<style type="text/css">
body {
background-color: #ddddff;
}
svg {
background-color: yellow;
}
</style>
</head>
<body>
<svg width="500" height="500">
<line x1="10" y1="5" x2="200" y2="700" stroke="blue" stroke-width="5" />
<line x1="200" y1="700" x2="450" y2="5" stroke="blue" stroke-width="5" />
<rect x="50" y="60" width="400" height="400" fill="orange" />
<circle cx="250" cy="250" r="200" fill="blue" />
<text x="40" y="40" fill="charcoal" font-size="42" font-weight="bold" font-family="Ariel">Manju's SVG Example</text>
</svg>
</p>
<script type="text/javascript">
//Load in contents of CSV file
d3.csv("Baltimore_Crime_Safety_2010.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
Modified http://d3js/d3.v3.js to a secure url
https://d3js.org/d3.v3.js
https://d3js/d3.v3.js