-
Notifications
You must be signed in to change notification settings - Fork 2
/
dashboard.html
143 lines (105 loc) · 3.5 KB
/
dashboard.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
<!doctype html>
<html>
<meta charset="utf-8" />
<title>STROMSACK - dashboard</title>
<meta name="description" content="description" />
<meta name="author" content="author" />
<meta name="keywords" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/style.css" type="text/css" rel="stylesheet" />
<script src="jquery-3.2.1.js" type="text/javascript"></script>
<script src="js/script.js"></script>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<body>
<div id='container'>
<header>
<p id="logo"><img src="img/StromSackblue.svg" id="logoblue">STROMSACK</p>
<a href="index.html"><img src="img/notewz.jpg" id="ewz" /></a>
</header>
<main>
<h2>StromSack Dashboard</h2>
<a href="financials.html" class="button">Check your balance!</a> <a href="hardware.html" class="button">Request hardware</a> <a href="sendcoins.html" class="button">Make gifts!</a>
<!-- Put content below here -->
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<!--<div id="contentBalance">Not null</div>-->
<br>
<br>
<div id="containerchart" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
<!-- Part 1, Sandro's Graph-->
<!-- Part 2, Area Graph-->
<!-- Part 3, Coin Graph-->
<script>
Highcharts.chart('containerchart', {
chart: {
type: 'area'
},
title: {
text: 'Production and Consumption Curves for Household PV'
},
subtitle: {
text: 'Non-overlapping yellow region is coinable. Modified from real PV data.'
},
xAxis: {
allowDecimals: false,
labels: {
formatter: function () {
return "Now" + this.value + " hrs";
}
}
},
yAxis: {
title: {
text: 'Energy (kWh)'
},
labels: {
formatter: function () {
return this.value ;
}
}
},
tooltip: {
pointFormat: 'Energy {series.name} Units: <b>{point.y:,.0f}</b><br/>Time is: now - {point.x} hours'
},
plotOptions: {
area: {
pointStart: -24,
marker: {
enabled: false,
symbol: 'circle',
radius: 2,
states: {
hover: {
enabled: true
}
}
}
}
},
series: [{
name: 'Consumption',
data: [0.77 , 1.218, 1.906, 0.634, 0.752, 0.756, 1.068, 0.616, 0.538,
0.634, 0.576, 2.072, 0.68 , 0.596, 0.542, 0.482, 0.508, 0.49 ,
0.45 , 0.48 , 0.352, 0.38 , 0.408, 0.442, 0.932],
color: '#FF0000'
}, {
name: 'Production',
data: [2.232e+00, 3.394e+00, 3.733e+00, 3.795e+00, 3.477e+00, 2.727e+00,
1.618e+00, 1.460e-01, 1.000e-03, 0.000e+00, 0.000e+00, 0.000e+00,
0.000e+00, 0.000e+00, 0.000e+00, 0.000e+00, 0.000e+00, 0.000e+00,
0.000e+00, 0.000e+00, 0.000e+00, 0.000e+00, 5.900e-02, 2.390e-01,
4.270e-01],
color: '#F5EFAE'
}]
});
</script>
<!-- End content -->
</main>
<footer>
<a href="index.html">Home</a> <a href="contact.html">Contact</a> <a href="about.html">About</a> <a href="faq.html">FAQ</a>
</footer>
</div>
</body>
</html>