-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtree_chart_template.html
More file actions
29 lines (27 loc) · 874 Bytes
/
Copy pathtree_chart_template.html
File metadata and controls
29 lines (27 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["treemap"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
// Create and populate the data table.
var data = google.visualization.arrayToDataTable([
#DATA
]);
// Create and draw the visualization.
var tree = new google.visualization.TreeMap(document.getElementById('chart_div'));
tree.draw(data, {
minColor: '#f00',
midColor: '#ddd',
maxColor: '#0d0',
headerHeight: 15,
fontColor: 'black',
showScale: true});
}
</script>
</head>
<body>
<div id="chart_div" style="width: #WIDTHpx; height: #HEIGHTpx;"></div>
</body>
</html>