Skip to content

Instantly share code, notes, and snippets.

@valegui
Last active December 19, 2016 00:46
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/bdf3772495f0cbf3271e76c3dfd949bb to your computer and use it in GitHub Desktop.
Save valegui/bdf3772495f0cbf3271e76c3dfd949bb to your computer and use it in GitHub Desktop.
Personas que se dedican al cuidado /Scatterplot
<!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 sample_data =[
{
"c13_1_1": "Hombre",
"cuidados": 195,
"tiemposcuidando": 227.9893,
"unos": 16440,
"Porcentaje": 1.1861,
"Horas Promedio": 1.1692
},
{
"c13_1_1": "Mujer",
"cuidados": 483,
"tiemposcuidando": 1415.931,
"unos": 18135,
"Porcentaje": 2.6634,
"Horas Promedio": 2.9315
}
]
var visualization = d3plus.viz()
.container("#viz")
.data(sample_data)
.type("scatter")
.id("c13_1_1")
.x("Horas Promedio")
.y("Porcentaje")
.draw()
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment