xxxxxxxxxx
<html lang="en">
<head>
<meta charset="utf-8">
<title>Module 2 Exercise</title>
<script type="text/javascript" src="https://d3js.org/d3.v3.js"></script>
</head>
<body>
<p><font face="verdana,arial,sans-serif" font size="5" color="000000">Data Visualization and Infographics with D3</font><br>
<font face="verdana,arial,sans-serif" font size="3" color="000000">Module 2 Exercise - Loading Data</font><br>
<font face="verdana,arial,sans-serif" font size="3" color="000000">March 29, 2015</font></p>
<svg version="1.1" id="Layer_1" xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" width="281.917" height="267.124"
viewBox="0 0 281.917 267.124" overflow="visible" enable-background="new 0 0 281.917 267.124" xml:space="preserve">
<circle fill="#FFFF00" cx="22.603" cy="115.357" r="22.603"/>
<circle fill="#FF0000" cx="129.179" cy="81.508" r="81.507"/>
<circle fill="#003CFF" cx="243.56" cy="150.686" r="38.356"/>
<circle fill="#D010B1" cx="107.26" cy="218.495" r="48.63"/>
</svg>
<script type="text/javascript">
//Load in contents of CSV file
d3.csv("sugar-consumption-by-country.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