Skip to content

Instantly share code, notes, and snippets.

@valegui
Last active December 18, 2016 06:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valegui/2c0f644accd7bea3faf29ef06f135110 to your computer and use it in GitHub Desktop.
Save valegui/2c0f644accd7bea3faf29ef06f135110 to your computer and use it in GitHub Desktop.
Personas que se dedican al cuidado/ BARRAS
<!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