Skip to content

Instantly share code, notes, and snippets.

@aaizemberg
Created November 21, 2019 20:20
Show Gist options
  • Save aaizemberg/ce5b58ffc5c070e5a1a415bdd50e1a03 to your computer and use it in GitHub Desktop.
Save aaizemberg/ce5b58ffc5c070e5a1a415bdd50e1a03 to your computer and use it in GitHub Desktop.
Leyendo los datos del MakeoverMonday 2019w47 desde d3js
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>makeovermonday 2019 w47</title>
<script src="https://d3js.org/d3.v5.min.js"></script>
</head>
<body>
<h1>Makeover Monday</h1>
<a href="https://www.makeovermonday.co.uk/">https://www.makeovermonday.co.uk/</a>
<br><br>
<a href="https://data.world/makeovermonday/2019w47">Los datos del MakeoverMonday 2019, semana 47</a>
<script>
d3.csv("https://download.data.world/s/gulngatlbsr4zqkbymvdsx2qwovpqh").then(
function(data) {
console.log(data[0]);
data.forEach(function(d) {
d.age = +d.age;
d.ownership = +d.ownership;
d.year = +d.year;
});
viz(data);
}
);
function viz(data) {
console.log(data[0]);
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment