Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (20 sloc) 913 Bytes
<html>
<head>
<!-- just usingjquery for the $(document).ready() - we don't need it for charting -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<!-- need the raphael vector library -->
<script type="text/javascript" src="raphael-min.js"></script>
<!-- our treemapping library-->
<script type="text/javascript" src="../min/treemap-squared-0.5.min.js"></script>
</head>
<body>
<div id="example-3"></div>
<script type="text/javascript">
$(document).ready(function () {
var data = [60000, 60000, 40000, 30000, 20000, 10000];
var labels = ["Paris", "London", "New York", "Moscow", "Berlin", "Tokyo"];
Treemap.draw("example-3", 600, 450, data, labels, {'label' : {'fill' : 'black'}, 'box' : { 'fill' : 'white', 'stroke' : 'black', 'stroke-width' : '3px'}});
});
</script>
</body>
</html>