Last active
December 21, 2016 23:15
-
-
Save aaizemberg/d13c46fe167f4d0ece9bcf07b8f035cd to your computer and use it in GitHub Desktop.
Porcentaje de Inmigrantes en la Argentina [1869..2010]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<meta charset="utf-8"> | |
<script src="http://www.d3plus.org/js/d3.js"></script> | |
<script src="http://www.d3plus.org/js/d3plus.js"></script> | |
<h1>Población nacida en el extranjero [1869..2010]</h1> | |
<div id="viz"></div> | |
<script> | |
var inmigrantes = [ | |
{"year":1869,"%":12.1,"name":"inmigrantes"}, | |
{"year":1895,"%":25.4,"name":"inmigrantes"}, | |
{"year":1914,"%":29.9,"name":"inmigrantes"}, | |
{"year":1947,"%":15.3,"name":"inmigrantes"}, | |
{"year":1960,"%":13.0,"name":"inmigrantes"}, | |
{"year":1970,"%":9.5,"name":"inmigrantes"}, | |
{"year":1980,"%":6.8,"name":"inmigrantes"}, | |
{"year":1991,"%":5.0,"name":"inmigrantes"}, | |
{"year":2001,"%":4.2,"name":"inmigrantes"}, | |
{"year":2010,"%":4.5,"name":"inmigrantes"} | |
]; | |
var visualization = d3plus.viz() | |
.container("#viz") | |
.data(inmigrantes) | |
.type("line") | |
.id("name") | |
.text("name") | |
.y("%") | |
.x("year") | |
.draw() | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment