Last active
December 20, 2016 06:35
-
-
Save valegui/089f6d29c62a8b0bf6a4044331f60909 to your computer and use it in GitHub Desktop.
Horas promedio diarias dedicadas al cuidado de personas por sexo y región
This file contains hidden or 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="//d3plus.org/js/d3.js"></script> | |
<script src="//d3plus.org/js/d3plus.js"></script> | |
<div id="viz"></div> | |
<script> | |
var data = [ | |
{ | |
"Sexo": "Hombre", | |
"Region": "Tarapacá", | |
"Tiempo": 1.0021 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Antofagasta", | |
"Tiempo": 0.5067 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Atacama", | |
"Tiempo": 0.558 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Coquimbo", | |
"Tiempo": 0.5445 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Valparaíso", | |
"Tiempo": 0.575 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Libertador General Bernardo O'Higgins", | |
"Tiempo": 0.5853 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Maule", | |
"Tiempo": 0.2448 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Bíobío", | |
"Tiempo": 0.5006 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "La Araucanía", | |
"Tiempo": 0.5252 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Los Lagos", | |
"Tiempo": 0.5757 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Aysén del General Carlos Ibáñez del Campo", | |
"Tiempo": 0.4788 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Magallanes y de la Antártica Chilena", | |
"Tiempo": 0.5653 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Metropolitana de Santiago", | |
"Tiempo": 0.563 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Los Ríos", | |
"Tiempo": 0.6896 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Arica y Parinacota", | |
"Tiempo": 0.7087 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Tarapacá", | |
"Tiempo": 1.8161 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Antofagasta", | |
"Tiempo": 1.467 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Atacama", | |
"Tiempo": 1.6109 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Coquimbo", | |
"Tiempo": 1.4325 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Valparaíso", | |
"Tiempo": 1.2586 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Libertador General Bernardo O'Higgins", | |
"Tiempo": 1.2851 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Maule", | |
"Tiempo": 0.8319 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Bíobío", | |
"Tiempo": 1.2687 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "La Araucanía", | |
"Tiempo": 1.2735 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Los Lagos", | |
"Tiempo": 1.3258 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Aysén del General Carlos Ibáñez del Campo", | |
"Tiempo": 1.3314 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Magallanes y de la Antártica Chilena", | |
"Tiempo": 1.201 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Metropolitana de Santiago", | |
"Tiempo": 1.3915 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Los Ríos", | |
"Tiempo": 1.4515 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Arica y Parinacota", | |
"Tiempo": 1.2914 | |
} | |
] | |
var visualization = d3plus.viz() | |
.container("#viz") | |
.data(data) | |
.type("bar") | |
.color("Sexo") | |
.id("Sexo") | |
.legend({"size": 50, "labels": true, "data": false }) | |
.x("Region") | |
.y("Tiempo") | |
.title("Horas promedio diarias dedicadas al cuidado de personas por sexo y región") | |
.draw() | |
</script> |
This file contains hidden or 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
[ | |
{ | |
"Sexo": "Hombre", | |
"Region": "Tarapacá", | |
"Tiempo": 1.0021 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Antofagasta", | |
"Tiempo": 0.5067 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Atacama", | |
"Tiempo": 0.558 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Coquimbo", | |
"Tiempo": 0.5445 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Valparaíso", | |
"Tiempo": 0.575 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Libertador General Bernardo O'Higgins", | |
"Tiempo": 0.5853 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Maule", | |
"Tiempo": 0.2448 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Bíobío", | |
"Tiempo": 0.5006 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "La Araucanía", | |
"Tiempo": 0.5252 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Los Lagos", | |
"Tiempo": 0.5757 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Aysén del General Carlos Ibáñez del Campo", | |
"Tiempo": 0.4788 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Magallanes y de la Antártica Chilena", | |
"Tiempo": 0.5653 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Metropolitana de Santiago", | |
"Tiempo": 0.563 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Los Ríos", | |
"Tiempo": 0.6896 | |
}, | |
{ | |
"Sexo": "Hombre", | |
"Region": "Arica y Parinacota", | |
"Tiempo": 0.7087 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Tarapacá", | |
"Tiempo": 1.8161 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Antofagasta", | |
"Tiempo": 1.467 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Atacama", | |
"Tiempo": 1.6109 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Coquimbo", | |
"Tiempo": 1.4325 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Valparaíso", | |
"Tiempo": 1.2586 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Libertador General Bernardo O'Higgins", | |
"Tiempo": 1.2851 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Maule", | |
"Tiempo": 0.8319 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Bíobío", | |
"Tiempo": 1.2687 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "La Araucanía", | |
"Tiempo": 1.2735 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Los Lagos", | |
"Tiempo": 1.3258 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Aysén del General Carlos Ibáñez del Campo", | |
"Tiempo": 1.3314 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Magallanes y de la Antártica Chilena", | |
"Tiempo": 1.201 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Metropolitana de Santiago", | |
"Tiempo": 1.3915 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Los Ríos", | |
"Tiempo": 1.4515 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"Region": "Arica y Parinacota", | |
"Tiempo": 1.2914 | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment