Last active
December 18, 2016 06:38
-
-
Save valegui/2c0f644accd7bea3faf29ef06f135110 to your computer and use it in GitHub Desktop.
Personas que se dedican al cuidado/ BARRAS
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="//d3plus.org/js/d3.js"></script> | |
<script src="//d3plus.org/js/d3plus.js"></script> | |
<div id="viz"></div> | |
<script> | |
var data = [ | |
{ | |
"Sexo": "Hombre", | |
"cuidados": 194, | |
"tiemposcuidando": 227.8223, | |
"unos": 16440, | |
"Porcentaje": "1.18% de los Hombres", | |
"Horas Promedio": 1.174342 | |
}, | |
{ | |
"Sexo": "Mujer", | |
"cuidados": 483, | |
"tiemposcuidando": 1415.931, | |
"unos": 18135, | |
"Porcentaje": "2.66% de las Mujeres", | |
"Horas Promedio": 2.931534 | |
} | |
] | |
var visualization = d3plus.viz() | |
.container("#viz") | |
.data(data) | |
.type("bar") | |
.id("Porcentaje") | |
.x("Sexo") | |
.y("Horas Promedio") | |
.draw() | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment