Created
December 18, 2016 22:57
-
-
Save valegui/7850ee6b822b4d798f0308b4130f5161 to your computer and use it in GitHub Desktop.
Horas promedio de trabajo no remunerado por sexo
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", | |
"trabajo": 7847, | |
"tiempos": 18648.946, | |
"Horas Promedio": 2.3766 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"trabajo": 11721, | |
"tiempos": 54206.054, | |
"Horas Promedio": 4.6247 | |
} | |
] | |
var visualization = d3plus.viz() | |
.container("#viz") | |
.data(data) | |
.type("bar") | |
.color("Sexo") | |
.id("Sexo") | |
.legend({"size": 50, "labels": true, "data": false }) | |
.x("Sexo") | |
.y("Horas Promedio") | |
.title("Horas promedio de trabajo no remunerado diarias") | |
.draw() | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment