-
Notifications
You must be signed in to change notification settings - Fork 19
/
example-2.html
23 lines (20 loc) · 810 Bytes
/
example-2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<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-2"></div>
<script type="text/javascript">
$(document).ready(function () {
data = [[60000, 60000, 40000], [30000, 20000, 10000]];
labels = [["Paris", "London", "New York"], ["Moscow", "Berlin", "Tokyo"]];
Treemap.draw("example-2", 600, 450, data, labels);
});
</script>
</body>
</html>