Add 3 files
Browse files- README.md +7 -5
- index.html +542 -19
- prompts.txt +1 -0
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: wfwe
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: gray
|
5 |
+
colorTo: green
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,542 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Utility Data Analysis Dashboard</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
9 |
+
<script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>
|
10 |
+
<style>
|
11 |
+
.highlight-box {
|
12 |
+
border-left: 4px solid #3b82f6;
|
13 |
+
background-color: #f8fafc;
|
14 |
+
transition: all 0.3s ease;
|
15 |
+
}
|
16 |
+
.highlight-box:hover {
|
17 |
+
background-color: #eff6ff;
|
18 |
+
transform: translateY(-2px);
|
19 |
+
}
|
20 |
+
.data-card {
|
21 |
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
22 |
+
transition: all 0.3s ease;
|
23 |
+
}
|
24 |
+
.data-card:hover {
|
25 |
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
26 |
+
}
|
27 |
+
.tab-content {
|
28 |
+
display: none;
|
29 |
+
}
|
30 |
+
.tab-content.active {
|
31 |
+
display: block;
|
32 |
+
}
|
33 |
+
.tab-button {
|
34 |
+
transition: all 0.3s ease;
|
35 |
+
}
|
36 |
+
.tab-button.active {
|
37 |
+
border-bottom: 3px solid #3b82f6;
|
38 |
+
color: #3b82f6;
|
39 |
+
font-weight: 600;
|
40 |
+
}
|
41 |
+
</style>
|
42 |
+
</head>
|
43 |
+
<body class="bg-gray-50">
|
44 |
+
<div class="container mx-auto px-4 py-8">
|
45 |
+
<header class="mb-8">
|
46 |
+
<h1 class="text-3xl font-bold text-gray-800 mb-2">Utility Consumption Analysis Dashboard</h1>
|
47 |
+
<p class="text-gray-600">Visual representation of utility consumption patterns with anomaly detection</p>
|
48 |
+
</header>
|
49 |
+
|
50 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
|
51 |
+
<div class="data-card bg-white rounded-lg p-6">
|
52 |
+
<div class="flex items-center mb-4">
|
53 |
+
<div class="p-3 rounded-full bg-blue-100 text-blue-600 mr-4">
|
54 |
+
<i class="fas fa-tint text-xl"></i>
|
55 |
+
</div>
|
56 |
+
<div>
|
57 |
+
<h3 class="text-gray-500 text-sm font-medium">Water Consumption</h3>
|
58 |
+
<p class="text-2xl font-bold text-gray-800">Varies by property</p>
|
59 |
+
</div>
|
60 |
+
</div>
|
61 |
+
<p class="text-gray-600 text-sm">Shows steady increase with seasonal variations</p>
|
62 |
+
</div>
|
63 |
+
|
64 |
+
<div class="data-card bg-white rounded-lg p-6">
|
65 |
+
<div class="flex items-center mb-4">
|
66 |
+
<div class="p-3 rounded-full bg-yellow-100 text-yellow-600 mr-4">
|
67 |
+
<i class="fas fa-bolt text-xl"></i>
|
68 |
+
</div>
|
69 |
+
<div>
|
70 |
+
<h3 class="text-gray-500 text-sm font-medium">Electricity Usage</h3>
|
71 |
+
<p class="text-2xl font-bold text-gray-800">Significant peaks</p>
|
72 |
+
</div>
|
73 |
+
</div>
|
74 |
+
<p class="text-gray-600 text-sm">Notable spikes in winter months for heating</p>
|
75 |
+
</div>
|
76 |
+
|
77 |
+
<div class="data-card bg-white rounded-lg p-6">
|
78 |
+
<div class="flex items-center mb-4">
|
79 |
+
<div class="p-3 rounded-full bg-red-100 text-red-600 mr-4">
|
80 |
+
<i class="fas fa-fire text-xl"></i>
|
81 |
+
</div>
|
82 |
+
<div>
|
83 |
+
<h3 class="text-gray-500 text-sm font-medium">Heating Costs</h3>
|
84 |
+
<p class="text-2xl font-bold text-gray-800">Seasonal pattern</p>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
<p class="text-gray-600 text-sm">Highest in winter months, lowest in summer</p>
|
88 |
+
</div>
|
89 |
+
</div>
|
90 |
+
|
91 |
+
<div class="bg-white rounded-lg shadow-md mb-8">
|
92 |
+
<div class="flex border-b">
|
93 |
+
<button class="tab-button active px-6 py-4 text-gray-700" onclick="openTab(event, 'water')">Water Usage</button>
|
94 |
+
<button class="tab-button px-6 py-4 text-gray-700" onclick="openTab(event, 'electricity')">Electricity</button>
|
95 |
+
<button class="tab-button px-6 py-4 text-gray-700" onclick="openTab(event, 'heating')">Heating</button>
|
96 |
+
<button class="tab-button px-6 py-4 text-gray-700" onclick="openTab(event, 'anomalies')">Anomalies</button>
|
97 |
+
</div>
|
98 |
+
|
99 |
+
<div id="water" class="tab-content active p-6">
|
100 |
+
<h2 class="text-xl font-semibold mb-4 text-gray-800">Water Consumption Analysis</h2>
|
101 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
|
102 |
+
<div>
|
103 |
+
<canvas id="waterChart"></canvas>
|
104 |
+
</div>
|
105 |
+
<div>
|
106 |
+
<div class="highlight-box p-4 mb-4 rounded">
|
107 |
+
<h3 class="font-medium text-blue-600 mb-2"><i class="fas fa-info-circle mr-2"></i>Key Observation</h3>
|
108 |
+
<p class="text-gray-700">The Páva property shows significantly lower water consumption compared to NagyLajos and Rozsnyay, suggesting either more efficient fixtures or different usage patterns.</p>
|
109 |
+
</div>
|
110 |
+
<div class="highlight-box p-4 rounded">
|
111 |
+
<h3 class="font-medium text-blue-600 mb-2"><i class="fas fa-chart-line mr-2"></i>Trend Analysis</h3>
|
112 |
+
<p class="text-gray-700">All properties show a steady increase in water consumption over time, with Rozsnyay having the highest absolute consumption values.</p>
|
113 |
+
</div>
|
114 |
+
</div>
|
115 |
+
</div>
|
116 |
+
</div>
|
117 |
+
|
118 |
+
<div id="electricity" class="tab-content p-6">
|
119 |
+
<h2 class="text-xl font-semibold mb-4 text-gray-800">Electricity Consumption Analysis</h2>
|
120 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
|
121 |
+
<div>
|
122 |
+
<canvas id="electricityChart"></canvas>
|
123 |
+
</div>
|
124 |
+
<div>
|
125 |
+
<div class="highlight-box p-4 mb-4 rounded">
|
126 |
+
<h3 class="font-medium text-blue-600 mb-2"><i class="fas fa-bolt mr-2"></i>Peak Usage</h3>
|
127 |
+
<p class="text-gray-700">The Rozsnyay property shows extreme electricity consumption in 2018 (41,366 units), which appears to be a data anomaly or meter reading error.</p>
|
128 |
+
</div>
|
129 |
+
<div class="highlight-box p-4 rounded">
|
130 |
+
<h3 class="font-medium text-blue-600 mb-2"><i class="fas fa-calendar-alt mr-2"></i>Seasonal Pattern</h3>
|
131 |
+
<p class="text-gray-700">Electricity usage tends to be higher in winter months across all properties, likely due to increased heating requirements.</p>
|
132 |
+
</div>
|
133 |
+
</div>
|
134 |
+
</div>
|
135 |
+
</div>
|
136 |
+
|
137 |
+
<div id="heating" class="tab-content p-6">
|
138 |
+
<h2 class="text-xl font-semibold mb-4 text-gray-800">Heating Consumption Analysis</h2>
|
139 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
|
140 |
+
<div>
|
141 |
+
<canvas id="heatingChart"></canvas>
|
142 |
+
</div>
|
143 |
+
<div>
|
144 |
+
<div class="highlight-box p-4 mb-4 rounded">
|
145 |
+
<h3 class="font-medium text-blue-600 mb-2"><i class="fas fa-temperature-low mr-2"></i>Winter Peaks</h3>
|
146 |
+
<p class="text-gray-700">Heating consumption shows clear seasonal patterns with peaks in December-February and lowest usage in June-August.</p>
|
147 |
+
</div>
|
148 |
+
<div class="highlight-box p-4 rounded">
|
149 |
+
<h3 class="font-medium text-blue-600 mb-2"><i class="fas fa-exclamation-triangle mr-2"></i>Notable Spikes</h3>
|
150 |
+
<p class="text-gray-700">The Rozsnyay property shows unusually high heating consumption in 2016-2017, reaching up to 10,381 units, significantly higher than other properties.</p>
|
151 |
+
</div>
|
152 |
+
</div>
|
153 |
+
</div>
|
154 |
+
</div>
|
155 |
+
|
156 |
+
<div id="anomalies" class="tab-content p-6">
|
157 |
+
<h2 class="text-xl font-semibold mb-4 text-gray-800">Anomaly Detection</h2>
|
158 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
|
159 |
+
<div>
|
160 |
+
<canvas id="anomalyChart"></canvas>
|
161 |
+
</div>
|
162 |
+
<div>
|
163 |
+
<div class="highlight-box p-4 mb-4 rounded">
|
164 |
+
<h3 class="font-medium text-blue-600 mb-2"><i class="fas fa-search mr-2"></i>Detected Anomalies</h3>
|
165 |
+
<ul class="list-disc pl-5 text-gray-700 space-y-2">
|
166 |
+
<li>Rozsnyay May 2018: Extreme electricity reading (41,366 units)</li>
|
167 |
+
<li>Páva October 2018: Negative heating value (-12,981 units)</li>
|
168 |
+
<li>NagyLajos April 2012: Missing utility data for most categories</li>
|
169 |
+
<li>Rozsnyay April 2018: All meters reset to 0.00</li>
|
170 |
+
</ul>
|
171 |
+
</div>
|
172 |
+
<div class="highlight-box p-4 rounded">
|
173 |
+
<h3 class="font-medium text-blue-600 mb-2"><i class="fas fa-lightbulb mr-2"></i>Recommendations</h3>
|
174 |
+
<p class="text-gray-700">Verify meter readings during anomaly periods and investigate potential data entry errors. Consider implementing automated anomaly detection for future data collection.</p>
|
175 |
+
</div>
|
176 |
+
</div>
|
177 |
+
</div>
|
178 |
+
</div>
|
179 |
+
</div>
|
180 |
+
|
181 |
+
<div class="bg-white rounded-lg shadow-md p-6 mb-8">
|
182 |
+
<h2 class="text-xl font-semibold mb-4 text-gray-800">Comparative Analysis by Property</h2>
|
183 |
+
<div class="overflow-x-auto">
|
184 |
+
<table class="min-w-full divide-y divide-gray-200">
|
185 |
+
<thead class="bg-gray-50">
|
186 |
+
<tr>
|
187 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Property</th>
|
188 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Avg Water (M)</th>
|
189 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Avg Water (H)</th>
|
190 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Avg Electricity</th>
|
191 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Avg Heating</th>
|
192 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Notes</th>
|
193 |
+
</tr>
|
194 |
+
</thead>
|
195 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
196 |
+
<tr>
|
197 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">NagyLajos</td>
|
198 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">72.45</td>
|
199 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">80.32</td>
|
200 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">14,123</td>
|
201 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2,144</td>
|
202 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Most consistent usage</td>
|
203 |
+
</tr>
|
204 |
+
<tr>
|
205 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Rozsnyay</td>
|
206 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">182.34</td>
|
207 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">236.47</td>
|
208 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">7,611</td>
|
209 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3,898</td>
|
210 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Highest water usage</td>
|
211 |
+
</tr>
|
212 |
+
<tr>
|
213 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Páva</td>
|
214 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">159.22</td>
|
215 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">162.45</td>
|
216 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">44,527</td>
|
217 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">4,100</td>
|
218 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Most anomalies</td>
|
219 |
+
</tr>
|
220 |
+
</tbody>
|
221 |
+
</table>
|
222 |
+
</div>
|
223 |
+
</div>
|
224 |
+
|
225 |
+
<div class="bg-white rounded-lg shadow-md p-6">
|
226 |
+
<h2 class="text-xl font-semibold mb-4 text-gray-800">Key Insights</h2>
|
227 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
228 |
+
<div class="highlight-box p-6 rounded-lg">
|
229 |
+
<h3 class="text-lg font-medium text-blue-600 mb-3"><i class="fas fa-chart-pie mr-2"></i>Consumption Patterns</h3>
|
230 |
+
<ul class="list-disc pl-5 text-gray-700 space-y-2">
|
231 |
+
<li>Water consumption shows the most consistent upward trend across all properties</li>
|
232 |
+
<li>Electricity usage has the most variability with significant seasonal patterns</li>
|
233 |
+
<li>Heating costs are predictably highest in winter months but show property-specific patterns</li>
|
234 |
+
</ul>
|
235 |
+
</div>
|
236 |
+
<div class="highlight-box p-6 rounded-lg">
|
237 |
+
<h3 class="text-lg font-medium text-blue-600 mb-3"><i class="fas fa-exclamation-circle mr-2"></i>Data Quality Issues</h3>
|
238 |
+
<ul class="list-disc pl-5 text-gray-700 space-y-2">
|
239 |
+
<li>Several instances of missing data (empty cells in original dataset)</li>
|
240 |
+
<li>Extreme values that may represent meter reading errors</li>
|
241 |
+
<li>Negative values in heating costs that require verification</li>
|
242 |
+
<li>Meter resets (sudden drops to zero) that need investigation</li>
|
243 |
+
</ul>
|
244 |
+
</div>
|
245 |
+
</div>
|
246 |
+
</div>
|
247 |
+
</div>
|
248 |
+
|
249 |
+
<script>
|
250 |
+
// Tab functionality
|
251 |
+
function openTab(evt, tabName) {
|
252 |
+
var i, tabcontent, tabbuttons;
|
253 |
+
|
254 |
+
tabcontent = document.getElementsByClassName("tab-content");
|
255 |
+
for (i = 0; i < tabcontent.length; i++) {
|
256 |
+
tabcontent[i].classList.remove("active");
|
257 |
+
}
|
258 |
+
|
259 |
+
tabbuttons = document.getElementsByClassName("tab-button");
|
260 |
+
for (i = 0; i < tabbuttons.length; i++) {
|
261 |
+
tabbuttons[i].classList.remove("active");
|
262 |
+
}
|
263 |
+
|
264 |
+
document.getElementById(tabName).classList.add("active");
|
265 |
+
evt.currentTarget.classList.add("active");
|
266 |
+
}
|
267 |
+
|
268 |
+
// Water Chart
|
269 |
+
const waterCtx = document.getElementById('waterChart').getContext('2d');
|
270 |
+
const waterChart = new Chart(waterCtx, {
|
271 |
+
type: 'line',
|
272 |
+
data: {
|
273 |
+
labels: ['2012', '2013', '2014', '2015', '2016', '2017', '2018', '2019', '2020', '2021', '2022', '2023', '2024'],
|
274 |
+
datasets: [
|
275 |
+
{
|
276 |
+
label: 'NagyLajos (M)',
|
277 |
+
data: [55, 96.7, null, null, null, null, null, null, null, null, null, null, null],
|
278 |
+
borderColor: '#3b82f6',
|
279 |
+
backgroundColor: 'rgba(59, 130, 246, 0.1)',
|
280 |
+
tension: 0.3,
|
281 |
+
fill: true
|
282 |
+
},
|
283 |
+
{
|
284 |
+
label: 'Rozsnyay (M)',
|
285 |
+
data: [null, null, null, null, 158.11, 197.19, 205.49, null, null, null, null, null, null],
|
286 |
+
borderColor: '#10b981',
|
287 |
+
backgroundColor: 'rgba(16, 185, 129, 0.1)',
|
288 |
+
tension: 0.3,
|
289 |
+
fill: true
|
290 |
+
},
|
291 |
+
{
|
292 |
+
label: 'Páva (M)',
|
293 |
+
data: [null, null, null, null, null, null, null, 3.65, 111.92, 168.11, 214.17, 261.17, 309.29],
|
294 |
+
borderColor: '#f59e0b',
|
295 |
+
backgroundColor: 'rgba(245, 158, 11, 0.1)',
|
296 |
+
tension: 0.3,
|
297 |
+
fill: true
|
298 |
+
}
|
299 |
+
]
|
300 |
+
},
|
301 |
+
options: {
|
302 |
+
responsive: true,
|
303 |
+
plugins: {
|
304 |
+
title: {
|
305 |
+
display: true,
|
306 |
+
text: 'Water Meter (M) Consumption Over Time',
|
307 |
+
font: {
|
308 |
+
size: 16
|
309 |
+
}
|
310 |
+
},
|
311 |
+
tooltip: {
|
312 |
+
mode: 'index',
|
313 |
+
intersect: false
|
314 |
+
}
|
315 |
+
},
|
316 |
+
scales: {
|
317 |
+
y: {
|
318 |
+
beginAtZero: true,
|
319 |
+
title: {
|
320 |
+
display: true,
|
321 |
+
text: 'Consumption (units)'
|
322 |
+
}
|
323 |
+
}
|
324 |
+
}
|
325 |
+
}
|
326 |
+
});
|
327 |
+
|
328 |
+
// Electricity Chart
|
329 |
+
const electricityCtx = document.getElementById('electricityChart').getContext('2d');
|
330 |
+
const electricityChart = new Chart(electricityCtx, {
|
331 |
+
type: 'line',
|
332 |
+
data: {
|
333 |
+
labels: ['2012', '2013', '2014', '2015', '2016', '2017', '2018', '2019', '2020', '2021', '2022', '2023', '2024'],
|
334 |
+
datasets: [
|
335 |
+
{
|
336 |
+
label: 'NagyLajos',
|
337 |
+
data: [12937, 15423, null, null, null, null, null, null, null, null, null, null, null],
|
338 |
+
borderColor: '#3b82f6',
|
339 |
+
backgroundColor: 'rgba(59, 130, 246, 0.1)',
|
340 |
+
tension: 0.3,
|
341 |
+
fill: true
|
342 |
+
},
|
343 |
+
{
|
344 |
+
label: 'Rozsnyay',
|
345 |
+
data: [null, null, null, null, 6110, 8624, 9074, null, null, null, null, null, null],
|
346 |
+
borderColor: '#10b981',
|
347 |
+
backgroundColor: 'rgba(16, 185, 129, 0.1)',
|
348 |
+
tension: 0.3,
|
349 |
+
fill: true,
|
350 |
+
pointBackgroundColor: function(context) {
|
351 |
+
return context.raw > 40000 ? '#ef4444' : '#10b981';
|
352 |
+
},
|
353 |
+
pointRadius: function(context) {
|
354 |
+
return context.raw > 40000 ? 7 : 3;
|
355 |
+
}
|
356 |
+
},
|
357 |
+
{
|
358 |
+
label: 'Páva',
|
359 |
+
data: [null, null, null, null, null, null, null, 41464, 44527, 45588, 47217, 48567, 50302],
|
360 |
+
borderColor: '#f59e0b',
|
361 |
+
backgroundColor: 'rgba(245, 158, 11, 0.1)',
|
362 |
+
tension: 0.3,
|
363 |
+
fill: true
|
364 |
+
}
|
365 |
+
]
|
366 |
+
},
|
367 |
+
options: {
|
368 |
+
responsive: true,
|
369 |
+
plugins: {
|
370 |
+
title: {
|
371 |
+
display: true,
|
372 |
+
text: 'Electricity Consumption Over Time',
|
373 |
+
font: {
|
374 |
+
size: 16
|
375 |
+
}
|
376 |
+
},
|
377 |
+
tooltip: {
|
378 |
+
mode: 'index',
|
379 |
+
intersect: false
|
380 |
+
},
|
381 |
+
annotation: {
|
382 |
+
annotations: {
|
383 |
+
anomaly: {
|
384 |
+
type: 'box',
|
385 |
+
xMin: '2018',
|
386 |
+
xMax: '2018',
|
387 |
+
yMin: 0,
|
388 |
+
yMax: 45000,
|
389 |
+
backgroundColor: 'rgba(239, 68, 68, 0.1)',
|
390 |
+
borderColor: 'rgba(239, 68, 68, 0.5)',
|
391 |
+
borderWidth: 1,
|
392 |
+
label: {
|
393 |
+
content: 'Anomaly',
|
394 |
+
enabled: true,
|
395 |
+
position: 'top'
|
396 |
+
}
|
397 |
+
}
|
398 |
+
}
|
399 |
+
}
|
400 |
+
},
|
401 |
+
scales: {
|
402 |
+
y: {
|
403 |
+
beginAtZero: true,
|
404 |
+
title: {
|
405 |
+
display: true,
|
406 |
+
text: 'Consumption (units)'
|
407 |
+
}
|
408 |
+
}
|
409 |
+
}
|
410 |
+
}
|
411 |
+
});
|
412 |
+
|
413 |
+
// Heating Chart
|
414 |
+
const heatingCtx = document.getElementById('heatingChart').getContext('2d');
|
415 |
+
const heatingChart = new Chart(heatingCtx, {
|
416 |
+
type: 'bar',
|
417 |
+
data: {
|
418 |
+
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
419 |
+
datasets: [
|
420 |
+
{
|
421 |
+
label: 'NagyLajos (2013)',
|
422 |
+
data: [2009, 2276, 2357, 2440, 2454, 2454, 2454, 2454, 2454, 2454, 2454, 2508],
|
423 |
+
backgroundColor: 'rgba(59, 130, 246, 0.7)'
|
424 |
+
},
|
425 |
+
{
|
426 |
+
label: 'Rozsnyay (2017)',
|
427 |
+
data: [9839, 10204, 10307, 10307, 10307, 10307, 10307, 10307, 10307, 10307, 10307, 10337],
|
428 |
+
backgroundColor: 'rgba(16, 185, 129, 0.7)'
|
429 |
+
},
|
430 |
+
{
|
431 |
+
label: 'Páva (2023)',
|
432 |
+
data: [437.939, 438.538, 439.38, 439.741, 439.741, 439.741, 439.741, 439.741, 439.741, 439.741, 439.741, 440.181],
|
433 |
+
backgroundColor: 'rgba(245, 158, 11, 0.7)'
|
434 |
+
}
|
435 |
+
]
|
436 |
+
},
|
437 |
+
options: {
|
438 |
+
responsive: true,
|
439 |
+
plugins: {
|
440 |
+
title: {
|
441 |
+
display: true,
|
442 |
+
text: 'Monthly Heating Consumption Comparison',
|
443 |
+
font: {
|
444 |
+
size: 16
|
445 |
+
}
|
446 |
+
},
|
447 |
+
tooltip: {
|
448 |
+
mode: 'index',
|
449 |
+
intersect: false
|
450 |
+
}
|
451 |
+
},
|
452 |
+
scales: {
|
453 |
+
y: {
|
454 |
+
beginAtZero: true,
|
455 |
+
title: {
|
456 |
+
display: true,
|
457 |
+
text: 'Consumption (units)'
|
458 |
+
}
|
459 |
+
}
|
460 |
+
}
|
461 |
+
}
|
462 |
+
});
|
463 |
+
|
464 |
+
// Anomaly Chart
|
465 |
+
const anomalyCtx = document.getElementById('anomalyChart').getContext('2d');
|
466 |
+
const anomalyChart = new Chart(anomalyCtx, {
|
467 |
+
type: 'scatter',
|
468 |
+
data: {
|
469 |
+
datasets: [
|
470 |
+
{
|
471 |
+
label: 'Normal Readings',
|
472 |
+
data: [
|
473 |
+
{x: 2012, y: 12937},
|
474 |
+
{x: 2012, y: 13050},
|
475 |
+
{x: 2013, y: 14496},
|
476 |
+
{x: 2016, y: 6343},
|
477 |
+
{x: 2017, y: 7213},
|
478 |
+
{x: 2020, y: 44227},
|
479 |
+
{x: 2021, y: 45246},
|
480 |
+
{x: 2022, y: 47217}
|
481 |
+
],
|
482 |
+
backgroundColor: '#3b82f6'
|
483 |
+
},
|
484 |
+
{
|
485 |
+
label: 'Anomalies',
|
486 |
+
data: [
|
487 |
+
{x: 2018, y: 41366},
|
488 |
+
{x: 2018, y: 0},
|
489 |
+
{x: 2018, y: 0},
|
490 |
+
{x: 2018, y: 0},
|
491 |
+
{x: 2018, y: 0},
|
492 |
+
{x: 2018, y: 0}
|
493 |
+
],
|
494 |
+
backgroundColor: '#ef4444',
|
495 |
+
pointRadius: 8
|
496 |
+
}
|
497 |
+
]
|
498 |
+
},
|
499 |
+
options: {
|
500 |
+
responsive: true,
|
501 |
+
plugins: {
|
502 |
+
title: {
|
503 |
+
display: true,
|
504 |
+
text: 'Electricity Consumption Anomalies',
|
505 |
+
font: {
|
506 |
+
size: 16
|
507 |
+
}
|
508 |
+
},
|
509 |
+
tooltip: {
|
510 |
+
callbacks: {
|
511 |
+
label: function(context) {
|
512 |
+
let label = context.dataset.label || '';
|
513 |
+
if (label) {
|
514 |
+
label += ': ';
|
515 |
+
}
|
516 |
+
if (context.parsed.y !== null) {
|
517 |
+
label += context.parsed.y.toLocaleString() + ' units';
|
518 |
+
}
|
519 |
+
return label;
|
520 |
+
}
|
521 |
+
}
|
522 |
+
}
|
523 |
+
},
|
524 |
+
scales: {
|
525 |
+
y: {
|
526 |
+
title: {
|
527 |
+
display: true,
|
528 |
+
text: 'Consumption (units)'
|
529 |
+
}
|
530 |
+
},
|
531 |
+
x: {
|
532 |
+
title: {
|
533 |
+
display: true,
|
534 |
+
text: 'Year'
|
535 |
+
}
|
536 |
+
}
|
537 |
+
}
|
538 |
+
}
|
539 |
+
});
|
540 |
+
</script>
|
541 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Notmebug/wfwe" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
542 |
+
</html>
|
prompts.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
create more detailed analysis
|