Last active
December 19, 2016 00:46
-
-
Save valegui/bdf3772495f0cbf3271e76c3dfd949bb to your computer and use it in GitHub Desktop.
Personas que se dedican al cuidado /Scatterplot
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 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