-
Notifications
You must be signed in to change notification settings - Fork 3
/
data.html
149 lines (148 loc) · 6.13 KB
/
data.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=1250,height=1000, initial-scale=1.0, user-scalable=no">
<meta name="author" content="Daniel Santos">
<meta name="repository" content="https://github.com/xdanielsb/EnergyMonitor">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="css/custom.css">
<link rel="stylesheet" href="css/progress.css">
<link rel="stylesheet" href="css/slider.css">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="js/radial.js"></script>
<script src="js/custom.js"></script>
</head>
<body>
<div class="sidenav-left">
<center>
<a href="calendar.html" style="border-color:transparent"> <img src="img/date0.png" alt="" class="img-logo"> </a>
<br><br>
<div class="btn-link" >
<a href="index.html">Our Status</a>
</div>
<div class="btn-link" id="active_button">
<a href="data.html">Our Community</a>
</div>
<div class="btn-link">
<a href="actions.html">My Actions</a>
</div>
<div class="btn-link" >
<a href="wallet.html">My Wallet</a>
</div>
<a href="credits.html" style="border-color:transparent"> <span style="position:relative; top:30px;" class="glyphicon glyphicon-info-sign" ></span> </a>
</center>
</div>
<div class="sidenav-right" id="sidenav-right" style=" margin-top:-20px;">
<div class="wrapper2">
<div class="header-right-menu">
<h3>History</h3>
<span class="glyphicon glyphicon-bell bell" onclick="hideRightMenu()"></span>
</div>
<div class="content-right-menu">
<div class="item-content" style="background-color: yellow;">
<div class="item-right-menu">
<b >21</b>
<p style="display:inline"> MARCH: </p>
<p style="color:red;display:inline">Your community is doing better than last month, but still on track to exceed the monthly goal.</p>
</div>
</div>
<div class="item-content">
<div class="item-right-menu">
<p style="display:inline"> FEBRUARY: </p>
<p style="color:green;display:inline">Your community met the monthly goal.</p>
</div>
</div>
<div class="item-content">
<div class="item-right-menu">
<p style="display:inline"> JANUARY: </p>
<p style="color:green;display:inline">Your community met the monthly goal.</p>
</div>
</div>
<div class="item-content" style="background-color: #f4d5d5;">
<div class="item-right-menu">
<p style="display:inline"> DECEMBER: </p>
<p style="color:#ff5050;display:inline">Your community missed the monthly goal by a large: 5,000 kWh.</p>
</div>
</div>
<div class="item-content">
<div class="item-right-menu">
<p style="display:inline"> NOVEMBER: </p>
<p style="color:green;display:inline">Your community met the monthly goal.</p>
</div>
</div>
<div class="item-content" style="background-color: #f4d5d5;">
<div class="item-right-menu">
<p style="display:inline"> OCTOBER: </p>
<p style="color:#ff5050;display:inline">Your community missed the monthly goal by a large: 5,000 kWh.</p>
</div>
</div>
<div class="item-content" style="background-color: #f4d5d5;">
<div class="item-right-menu">
<p style="display:inline"> SEPTEMBER: </p>
<p style="color:#ff5050;display:inline">Your community missed the monthly goal by a large: 5,000 kWh.</p>
</div>
</div>
<div class="item-content">
<div class="item-right-menu">
<p style="display:inline"> AUGUST: </p>
<p style="color:green;display:inline">Your community met the monthly goal.</p>
</div>
</div>
<div class="item-content" style="background-color: #f4d5d5;">
<div class="item-right-menu">
<p style="display:inline"> JULY: </p>
<p style="color:#ff5050;display:inline">Your community missed the monthly goal by a large: 5,000 kWh.</p>
</div>
</div>
</div>
</div>
</div>
<span id="bell1" class="glyphicon glyphicon-bell bell" onclick="displayRightMenu()" style="float:right; margin-top:5px;"></span>
<div class="container" style="margin-top:5px;">
<center>
<h2 class="tittle" style="width: 701px;">Last Month's Energy Usage per Household</h2>
<div id="chart" style="margin-left:-400px; width: 701px;"></div>
</center>
</div>
<div class="range">
<input type="range" min="1" max="12" steps="1" value="12">
</div>
<ul class="range-labels">
<li>APR</li>
<li>MAY</li>
<li>JUN</li>
<li>JUL</li>
<li>AUG</li>
<li>SEP</li>
<li>OCT</li>
<li>NOV</li>
<li>DEC</li>
<li>JAN</li>
<li>FEB</li>
<li class="active selected">MAR</li>
</ul>
<script>
let data = [
{name:"House1",y:300},
{name:"House2",y:750},
{name:"House3",y:800},
{name:"House4",y:900},
{name:"House5",y:1000},
{name:"House6",y:900},
{name:"House7",y:700},
{name:"House8",y:900},
{name:"House9",y:800},
{name:"House10",y:1000},
]
let bh = new Radial(data)
let myHouse = 10
bh.plot("chart", myHouse, false);
</script>
<script src="js/slider.js"></script>
<link rel="stylesheet" href="css/custom-links.css">
</body>
</html>