-
Notifications
You must be signed in to change notification settings - Fork 0
/
presTem.html
103 lines (34 loc) · 1.42 KB
/
presTem.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
</head>
<body>
<script type="text/javascript" src="GraphCore.js"></script>
<script type="text/javascript" src="LinePlugIn.js"></script>
<script type="text/javascript" src="XmlPlugIn.js"></script>
<script type="text/javascript" src="JsonPlugIn.js"></script>
<script type="text/javascript">
var lineGraph = new Line_Graph("divName","title");
var myContext = new Context();
myContext.GridColor="black";
myContext.GridWidth="0.5";
myContext.PlayAnimations=true;
myContext.LegendAlign="right-center";
myContext.XAxis="Date";
myContext.YAxis="Temperature";
myContext.LineColor[0]="red";
myContext.LineColor[1]="green";
myContext.LineColor[2]="blue";
myContext.LegendLbl[0]="City1";
myContext.LegendLbl[1]="City2";
myContext.LegendLbl[2]="City3";
lineGraph.setContext(myContext);
lineGraph.addPlugInData(XmlReader("data1.xml"),
JsonReader("data2.json"),
XmlReader("data3.xml"));
lineGraph.render();
</script>
</body>
</html>