Skip to content

Instantly share code, notes, and snippets.

@pachamaltese pachamaltese/

Last active Dec 26, 2016
What would you like to do?
Otro ejemplo de Treemap con D3Plus

license: gpl-3.0

este es un ejemplo de como ejecutar D3Plus directamente desde un gist

<!doctype html>
<meta charset="utf-8">
<script src="//"></script>
<script src="//"></script>
<div id="exports"></div>
// sample data array
var trade_data = [
{"usd": 34590873460, "product": "Oil"},
{"usd": 12897429187, "product": "Cars"},
{"usd": 8974520985, "product": "Airplanes"},
{"usd": 9872342, "product": "Apples"},
{"usd": 6897234098, "product": "Shoes"},
{"usd": 590834587, "product": "Glass"},
{"usd": 987234261, "product": "Horses"}
// instantiate d3plus
var visualization = d3plus.viz()
.labels({"align": "left", "valign": "top"})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.