-
Notifications
You must be signed in to change notification settings - Fork 0
/
dummy.html
45 lines (40 loc) · 1.96 KB
/
dummy.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!--
You are free to copy and use this sample in accordance with the terms of the
Apache license (http://www.apache.org/licenses/LICENSE-2.0.html)
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>
Google Visualization API Sample
</title>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load('visualization', '1');
</script>
<script type="text/javascript">
function drawVisualization() {
var data = new google.visualization.DataTable();
data.addColumn('string','lang');
data.addColumn('number','aac');
langs = ['jquery', 'asp.net', 'objective-c', 'sql', 'xml', 'perl', 'cocoa', 'delphi', 'scala', 'node.js', 'java', 'visual-c++', 'pyhton', 'c#', 'c++', 'php', 'c', 'ruby', 'ruby-on-rails', 'javascript'] ;
aac = [0.700748129676, 0.726315789474, 0.789473684211, 0.68253968254, 0.652173913043, 0.795918367347, 0.777777777778, 0.925925925926, 0.897637795276, 1.0, 0.745424292845, 0.384615384615, 0.803896518684, 0.81593763534, 0.690082644628, 0.690476190476, 0.554838709677, 0.789473684211, 0.78125, 0.628140703518] ;
for (var i = 0; i < aac.length; ++i) {
data.addRow([ langs[i],aac[i]])
}
var wrapper = new google.visualization.ChartWrapper({
chartType: 'ColumnChart',
dataTable: data,
options: {'title': 'AAC To Language for Tag: list '},
containerId: 'visualization'
});
wrapper.draw();
}
google.setOnLoadCallback(drawVisualization);
</script>
</head>
<body style="font-family: Arial;border: 0 none;">
<div id="visualization" style="width: 600px; height: 400px;"></div>
</body>
</html>