-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
35 lines (29 loc) · 995 Bytes
/
index.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
<html>
<head>
<script type='text/javascript' src='http://www.google.com/jsapi'></script>
<script type='text/javascript' src='data.js'></script>
<script type='text/javascript'>
init = function() {
/*
var q = new google.visualization.Query('data.json?x='+Math.random());
q.send(onJsonAnswer);
};
onJsonAnswer = function(resp){
if (resp.isError()) {
alert('Error in query: ' + resp.getMessage() + ' ' + resp.getDetailedMessage());
return;
}
var data = resp.getDataTable();
*/
eval(js_exec);
var chart = new google.visualization.AnnotatedTimeLine(document.getElementById('chart_div'));
chart.draw(data, {displayAnnotations: true});
};
google.load('visualization', '1', {'packages':['annotatedtimeline'], 'language' : 'fr'});
google.setOnLoadCallback(init);
</script>
</head>
<body>
<div id='chart_div' style='width: 100%; height: 300px;'></div>
</body>
</html>