-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathexample.html
69 lines (67 loc) · 2.01 KB
/
example.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
57
58
59
60
61
62
63
64
65
66
67
68
69
<html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript" src="js/graph.js"></script>
<script type="text/javascript">
var data = {
"url": "http: //192.168.4.154/hackathon/data.php",
"colModel": [
{
"display": "ID",
"name": "id",
"type": "string",
"sortable": true,
"align": "center"
},
{
"display": "Name",
"name": "name",
"type": "number",
"sortable": true,
"align": "left"
},
{
"display": "Email",
"name": "email",
"type": "string",
"sortable": false,
"align": "left"
}
],
"rows": [
{
"id": 1,
"cell": {
"id": 10,
"name": "Student10name",
"email": "[email protected]"
}
},
{
"id": 2,
"cell": {
"id": 11,
"name": "Student11name",
"email": "[email protected]"
}
}
]
}
var options = {
cols : ["name", "id"],
block: "chart_div",
type: "bar",
opt: {
'title':'Graph',
'width':400,
'height':300
}
}
drawChart(options);
</script>
</head>
<body>
<!--Div that will hold the pie chart-->
<div id="chart_div"></div>
</body>
</html>