-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
56 lines (46 loc) · 1.82 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<html>
<head>
<!--Load the AJAX API-->
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript">
// Load the Visualization API and the piechart package.
google.load('visualization', '1', {'packages':['corechart']});
// Set a callback to run when the Google Visualization API is loaded.
google.setOnLoadCallback(drawChart);
function drawChart() {
var jsonData = $.ajax({
url: "getData.php",
dataType:"json",
async: false
}).responseText;
// Create our data table out of JSON data loaded from server.
var data = new google.visualization.DataTable(jsonData);
// Instantiate and draw our chart, passing in some options.
//var chart = new google.visualization.PieChart(document.getElementById('chart_div'));
var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
//chart.draw(data, {width: 400, height: 240});
chart.draw(data, {width: 1100, height: 600, hAxis:{title:"datetime"},vAxis:{title:"#characters"}});
}
</script>
<link rel="stylesheet" type="text/css" href="shuron.css">
</head>
<body>
<div id="header">
修論進捗
</div>
<!--Div that will hold the line chart-->
<div id="chart_div"></div>
<div id="introduction">
<p>毎日0時,6時,12時,18時の4回更新</p>
</div>
<div id="attention">
<p>(更新履歴)</p>
<p>2015.1.21 作成</p>
<p>2015.2.2 1日4回の更新に変更</p>
<p>2015.2.4 1日8回の更新に変更</p>
<p>2015.2.11 まだ戦いは終わってなかった…</p>
<p></p>
</div>
</body>
</html>