Skip to content

Instantly share code, notes, and snippets.

@aaizemberg
Created October 21, 2017 16:37
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 aaizemberg/2b1c63f8a0b13105ad6d908933b5a3f2 to your computer and use it in GitHub Desktop.
Save aaizemberg/2b1c63f8a0b13105ad6d908933b5a3f2 to your computer and use it in GitHub Desktop.
BA Taxi - Cantidad de Pasajeros
<!doctype html>
<meta charset="utf-8">
<script src="//d3plus.org/js/d3.js"></script>
<script src="//d3plus.org/js/d3plus.js"></script>
<h1>BA Taxi - el 65% de los viajes, se hacen con 1 solo pasajero.</h1>
<div id="viz"></div>
<script>
var data = [{"name":1,"value":12483},
{"name":2,"value":4828},
{"name":3,"value":1368},
{"name":4,"value":469}]
d3plus.viz()
.container("#viz")
.data(data)
.type("pie")
.id("name")
.size("value")
.draw()
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment