xxxxxxxxxx
<html lang="en">
<head>
<meta charset="utf-8">
<title>Highest Infant Mortality since 2000</title>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
</head>
<style>
</style>
<body>
<h1>Highest Infant Mortality by country since 2000</h1>
<script type="text/javascript">
var body = d3.select("body");
d3.csv("deaths_04yearsold.csv", function(error, d) {
if (error) {
console.log("Data error!");
}
d.sort(function (a, b) {
return b.Total - a.Total;
});
d3.select("body")
.data(d)
.enter()
.append("p")
.html(function(d, i) {
return d.Country + ", " + d.Year + ". Total child mortality: " + d.Total})
});
</script>
</body>
</html>
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js
https://code.jquery.com/jquery-1.9.1.min.js