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>THIS IS A SVG TEST</p>
<svg width="450" height="250">
<circle cx="150" cy="50" r="50" fill="green" />
<circle cx="300" cy="50" r="40" fill="green" />
<line x1="100" y1="200" x2="350" y2="200" stroke="blue" stroke-width="3" />
<rect x="225" y="129" width="20" height="20" fill="orange" />
<text x="140" y="210" fill="blue" font-size="12" font-weight="bold" font-family="Helvetica">VVVVVVVVVVVVVVVVVVVVVVVV</text>
</svg>
<script type="text/javascript">
//Load in contents of CSV file
d3.csv("CorruptionPerceptionsIndex2014.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