-
Notifications
You must be signed in to change notification settings - Fork 0
/
WordTree.html
29 lines (26 loc) · 887 Bytes
/
WordTree.html
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.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load('current', {packages:['wordtree']});
google.charts.setOnLoadCallback(drawSimpleNodeChart);
function drawSimpleNodeChart() {
var data = google.visualization.arrayToDataTable(
[['Phrases'], ['add your data item lists'] );
var options = {
wordtree: {
maxFontsize: 2,
format: 'implicit',
type: 'double',
word: 'taste'
}
};
var wordtree = new google.visualization.WordTree(document.getElementById('wordtree_double'));
wordtree.draw(data, options);
}
</script>
</head>
<body>
<div id="wordtree_double" style="width: 900px; height: 500px;"></div>
</body>
</html>