Merge branch 'main' of https://gitea.fhgr.ch/stoffelmauro/ConsultancyProject_2_ETL
This commit is contained in:
commit
281d9d3f5a
11 files changed
+268
-100
No files matched your search
@@ -38,7 +38,7 @@ BROADCAST_CONNECTION=log
|
|||||||
FILESYSTEM_DISK=local
|
FILESYSTEM_DISK=local
|
||||||
QUEUE_CONNECTION=database
|
QUEUE_CONNECTION=database
|
||||||
|
|
||||||
CACHE_STORE=database
|
CACHE_STORE=file
|
||||||
CACHE_PREFIX=
|
CACHE_PREFIX=
|
||||||
|
|
||||||
MEMCACHED_HOST=127.0.0.1
|
MEMCACHED_HOST=127.0.0.1
|
||||||
|
|||||||
+14
-1
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App;
|
namespace App;
|
||||||
|
use Illuminate\Support\Facades\Cache;
|
||||||
use Illuminate\Support\Facades\Http;
|
use Illuminate\Support\Facades\Http;
|
||||||
|
|
||||||
class Api
|
class Api
|
||||||
@@ -16,10 +17,17 @@ class Api
|
|||||||
|
|
||||||
$endpoint = env('FASTAPI_URI');
|
$endpoint = env('FASTAPI_URI');
|
||||||
$request = $endpoint.$path;
|
$request = $endpoint.$path;
|
||||||
|
|
||||||
|
if (Cache::has($request)) {
|
||||||
|
return Cache::get($request);
|
||||||
|
}
|
||||||
|
|
||||||
$get = Http::get($request);
|
$get = Http::get($request);
|
||||||
|
|
||||||
if($get->successful()){
|
if($get->successful()){
|
||||||
return $get->json();
|
$result = $get->json();
|
||||||
|
Cache::put($request, $result);
|
||||||
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
@@ -55,6 +63,11 @@ class Api
|
|||||||
return self::get("/property/{$id}/base");
|
return self::get("/property/{$id}/base");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function regionCapacities(int $id): mixed
|
||||||
|
{
|
||||||
|
return self::get("/region/{$id}/capacities");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -54,6 +54,45 @@ dd + dt{
|
|||||||
margin-top: .2em;
|
margin-top: .2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button[popovertarget]{
|
||||||
|
cursor: pointer;
|
||||||
|
display: inline-block;
|
||||||
|
width: 1.5em;
|
||||||
|
height: 1.5em;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 1px solid #fff;
|
||||||
|
background: #5470c6;
|
||||||
|
}
|
||||||
|
|
||||||
|
button[popovertarget]::before{
|
||||||
|
content: '?';
|
||||||
|
color: #fff;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
button[popovertarget]>span{
|
||||||
|
position: absolute;
|
||||||
|
left: -999em;
|
||||||
|
top: -999em;
|
||||||
|
}
|
||||||
|
|
||||||
|
[popover] {
|
||||||
|
border: none;
|
||||||
|
border-radius: 1em;
|
||||||
|
background: #fff;
|
||||||
|
padding: 1.5em;
|
||||||
|
border-radius: var(--small-border);
|
||||||
|
box-shadow: .0625em .0625em .625em rgba(0, 0, 0, 0.1);
|
||||||
|
max-width: 40em;
|
||||||
|
top: 4em;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
[popover]::backdrop{
|
||||||
|
background-color: rgba(0,0,0,.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
9. Create a root stacking context
|
9. Create a root stacking context
|
||||||
*/
|
*/
|
||||||
@@ -65,7 +104,6 @@ nav>ul{
|
|||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
body>header{
|
body>header{
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -81,30 +119,53 @@ body>header{
|
|||||||
|
|
||||||
main{
|
main{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100vh - 4em);
|
height: 100vh;
|
||||||
padding-top: 4em;
|
padding: 4em 0 1em;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(2, minmax(25%, 50%));
|
grid-template-columns: repeat(4, minmax(10%, 50%));
|
||||||
grid-template-rows: repeat(2, 1fr);
|
grid-template-rows: repeat(3, 1fr) 4em;
|
||||||
gap: 1em;
|
grid-template-areas:
|
||||||
|
"chart2 chart2 chart5 chart5"
|
||||||
|
"chart1 chart1 chart3 chart4"
|
||||||
|
"chart1 chart1 chart3 chart4"
|
||||||
|
"timeline timeline timeline timeline";
|
||||||
|
gap: .5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
article{
|
article{
|
||||||
background: #f9f9f9;
|
background: #f9f9f9;
|
||||||
border: .0625em solid #ccc;
|
border: .0625em solid #ccc;
|
||||||
box-shadow: 0 0 .3em #ccc;
|
box-shadow: 0 5px 10px rgba(154,160,185,.05), 0 15px 40px rgba(166,173,201,.2);
|
||||||
border-radius: 3px;
|
border-radius: .2em;
|
||||||
display: grid;
|
display: grid;
|
||||||
}
|
}
|
||||||
|
|
||||||
article.header{
|
article.header{
|
||||||
grid-template-columns: 100%;
|
grid-template-columns: 100%;
|
||||||
grid-template-rows: 2em 1fr;
|
grid-template-rows: minmax(1%, 10%) 1fr;
|
||||||
padding: 1em;
|
padding: .5em 1em 1em .5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
article>header{
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1em;
|
||||||
|
grid-template-rows: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
article>header>h2{
|
article>header>h2{
|
||||||
font-size: 1em;
|
font-size: .8em;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media(max-width: 960px){
|
||||||
|
|
||||||
|
body{
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
main{
|
||||||
|
height: auto;
|
||||||
|
grid-template-columns: 100%;
|
||||||
|
grid-template-rows: repeat(4, minmax(20em, 25em));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1 +0,0 @@
|
|||||||
[{"2024-06-08":195,"2024-10-13":205,"2025-03-29":154,"2025-09-05":103,"2025-09-16":103,"2025-03-28":143,"2024-07-24":147,"2024-12-19":176,"2025-04-20":107,"2024-07-19":149,"2024-06-18":165,"2025-05-25":105,"2024-06-15":189,"2024-09-09":209,"2024-10-25":220,"2025-02-04":90,"2025-05-09":105,"2025-05-15":105,"2025-03-03":111,"2025-07-31":103,"2025-01-29":100,"2024-11-04":216,"2025-02-19":88,"2025-10-29":67,"2024-07-04":162,"2024-08-18":155,"2024-10-17":202,"2025-08-28":85,"2025-08-06":103,"2024-05-07":159,"2025-03-17":149,"2024-06-09":184,"2024-04-23":175,"2025-06-28":107,"2025-02-27":121,"2025-07-02":104,"2024-08-04":141,"2024-12-01":180,"2024-12-04":176,"2024-09-08":204,"2024-07-15":154,"2025-10-28":67,"2025-07-28":103,"2025-07-18":104,"2024-04-18":163,"2024-07-03":169,"2024-10-30":213,"2024-12-14":181,"2024-11-23":215,"2024-12-18":172,"2025-09-09":103,"2025-03-31":146,"2025-08-30":85,"2024-04-26":164,"2024-12-07":189,"2025-03-05":105,"2025-05-20":105,"2024-05-22":175,"2024-10-15":201,"2024-10-22":221,"2024-12-26":99,"2025-07-07":103,"2025-06-01":105,"2025-03-12":137,"2024-06-23":168,"2025-08-15":104,"2024-09-14":215,"2025-09-03":98,"2025-09-18":103,"2024-04-27":172,"2024-07-12":166,"2025-06-19":105,"2024-05-16":167,"2024-11-06":214,"2025-05-16":105,"2025-08-03":104,"2025-05-18":105,"2024-09-10":207,"2024-08-09":143,"2024-09-16":207,"2025-10-02":92,"2024-06-26":180,"2025-09-23":103,"2024-08-12":149,"2024-10-29":211,"2025-02-20":89,"2024-11-29":189,"2024-08-05":136,"2024-06-05":181,"2025-04-09":138,"2025-07-09":103,"2025-09-07":103,"2025-03-16":150,"2024-06-13":187,"2024-11-07":218,"2024-11-19":211,"2024-08-03":139,"2025-08-08":104,"2025-08-24":99,"2025-10-17":72,"2024-09-29":213,"2025-01-26":110,"2025-02-16":95,"2025-06-09":105,"2024-12-10":175,"2024-05-08":160,"2024-06-03":180,"2025-08-09":107,"2024-06-20":163,"2024-05-19":152,"2025-01-11":165,"2025-01-23":148,"2025-02-28":126,"2025-06-06":105,"2025-06-17":105,"2025-07-20":104,"2025-08-05":103,"2025-10-21":73,"2025-03-19":144,"2024-11-02":227,"2024-06-11":181,"2024-08-02":88,"2024-05-05":158,"2025-03-27":143,"2025-07-01":104,"2025-10-09":92,"2025-10-20":73,"2025-04-15":107,"2025-06-11":105,"2025-05-04":105,"2024-05-13":171,"2024-07-05":158,"2025-05-22":105,"2025-09-22":103,"2024-06-01":170,"2024-06-19":167,"2024-12-06":178,"2025-05-05":105,"2024-08-13":145,"2024-08-27":173,"2024-06-10":179,"2025-06-10":105,"2024-07-11":161,"2025-01-03":105,"2025-03-22":160,"2025-10-19":73,"2025-10-24":73,"2024-06-17":168,"2024-10-12":223,"2025-01-28":99,"2024-10-20":224,"2024-12-23":116,"2025-03-25":144,"2025-09-04":100,"2025-06-15":105,"2024-06-22":177,"2024-08-22":160,"2024-04-24":173,"2025-07-17":103,"2025-08-26":94,"2024-09-07":214,"2024-05-26":181,"2025-05-03":103,"2024-07-20":168,"2025-06-16":105,"2024-08-20":158,"2025-05-07":105,"2024-09-30":202,"2024-07-08":167,"2024-10-06":197,"2025-03-23":151,"2025-10-15":82,"2024-08-19":153,"2024-11-12":213,"2025-02-02":96,"2024-09-01":206,"2024-06-04":183,"2024-07-22":149,"2024-05-12":166,"2024-06-29":186,"2025-04-30":105,"2025-09-15":103,"2024-05-09":150,"2025-08-02":107,"2024-07-18":145,"2024-06-16":177,"2025-09-28":92,"2024-08-08":141,"2024-12-17":174,"2025-02-07":94,"2025-05-12":105,"2025-06-22":105,"2024-04-20":188,"2024-11-15":216,"2025-07-14":103,"2025-02-06":93,"2024-12-13":172,"2025-01-15":152,"2024-11-09":232,"2024-11-28":188,"2024-11-22":214,"2024-11-30":195,"2024-12-22":126,"2025-01-10":145,"2024-11-13":212,"2025-02-03":92,"2025-10-14":92,"2024-07-14":159,"2025-06-08":105,"2025-09-29":92,"2024-05-31":153,"2025-05-24":107,"2024-10-08":197,"2024-05-18":162,"2025-01-04":143,"2024-06-21":162,"2024-05-23":168,"2025-03-06":109,"2025-08-11":103,"2024-10-23":219,"2024-07-07":172,"2024-07-28":139,"2025-10-31":67,"2025-08-19":102,"2024-07-27":163,"2024-11-17":214,"2025-01-16":155,"2025-02-25":118,"2024-05-27":175,"2025-08-25":95,"2025-05-26":105,"2024-12-09":176,"2024-12-20":170,"2025-04-04":143,"2025-08-04":103,"2024-07-02":170,"2025-09-01":96,"2025-05-27":105,"2025-06-23":105,"2024-07-10":163,"2024-04-19":170,"2024-06-14":184,"2024-12-03":178,"2024-05-06":155,"2025-04-19":111,"2025-05-31":107,"2025-07-24":103,"2025-09-08":103,"2025-03-01":130,"2025-09-30":92,"2025-04-08":141,"2025-07-16":103,"2025-07-26":107,"2025-01-09":146,"2024-12-08":177,"2024-12-21":161,"2025-01-08":144,"2025-05-30":105,"2025-08-20":101,"2025-04-26":111,"2025-05-06":105,"2025-01-12":153,"2024-09-11":206,"2025-09-11":103,"2025-01-22":145,"2025-07-03":104,"2025-03-30":147,"2025-10-11":95,"2025-04-17":107,"2024-08-01":91,"2025-05-17":107,"2025-02-08":108,"2025-04-14":107,"2024-09-04":201,"2024-08-07":140,"2025-04-13":107,"2025-05-01":101,"2025-01-02":74,"2025-10-30":67,"2025-08-31":87,"2025-01-31":106,"2024-09-15":203,"2025-02-15":112,"2024-08-17":162,"2024-09-25":214,"2025-04-23":107,"2024-04-17":159,"2024-05-11":147,"2024-12-27":94,"2024-10-05":212,"2025-04-12":111,"2025-08-12":103,"2025-06-04":105,"2024-06-27":178,"2025-05-13":105,"2025-09-25":95,"2025Line truncated
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
[{"2024-06-08":80,"2024-10-13":92,"2025-03-29":65,"2025-09-05":29,"2025-09-16":32,"2025-03-28":59,"2024-07-24":80,"2024-12-19":80,"2025-04-20":34,"2024-07-19":74,"2024-06-18":83,"2025-05-25":34,"2024-06-15":79,"2024-09-09":94,"2024-10-25":98,"2025-02-04":33,"2025-05-09":34,"2025-05-15":34,"2025-03-03":48,"2025-07-31":31,"2025-01-29":38,"2024-11-04":97,"2025-02-19":43,"2025-10-29":26,"2024-07-04":84,"2024-08-18":85,"2024-10-17":91,"2025-08-28":26,"2025-08-06":33,"2024-05-07":82,"2025-03-17":58,"2024-06-09":77,"2024-04-23":84,"2025-06-28":34,"2025-02-27":50,"2025-07-02":33,"2024-08-04":71,"2024-12-01":87,"2024-12-04":87,"2024-09-08":92,"2024-07-15":72,"2025-10-28":26,"2025-07-28":31,"2025-07-18":31,"2024-04-18":89,"2024-07-03":89,"2024-10-30":101,"2024-12-14":87,"2024-11-23":100,"2024-12-18":80,"2025-09-09":30,"2025-03-31":57,"2025-08-30":24,"2024-04-26":76,"2024-12-07":87,"2025-03-05":46,"2025-05-20":34,"2024-05-22":80,"2024-10-15":92,"2024-10-22":98,"2024-12-26":56,"2025-07-07":30,"2025-06-01":30,"2025-03-12":48,"2024-06-23":80,"2025-08-15":31,"2024-09-14":106,"2025-09-03":28,"2025-09-18":32,"2024-04-27":76,"2024-07-12":75,"2025-06-19":32,"2024-05-16":85,"2024-11-06":97,"2025-05-16":34,"2025-08-03":33,"2025-05-18":34,"2024-09-10":93,"2024-08-09":71,"2024-09-16":99,"2025-10-02":28,"2024-06-26":83,"2025-09-23":32,"2024-08-12":83,"2024-10-29":101,"2025-02-20":43,"2024-11-29":89,"2024-08-05":71,"2024-06-05":75,"2025-04-09":53,"2025-07-09":30,"2025-09-07":30,"2025-03-16":58,"2024-06-13":76,"2024-11-07":98,"2024-11-19":99,"2024-08-03":73,"2025-08-08":32,"2025-08-24":30,"2025-10-17":26,"2024-09-29":93,"2025-01-26":39,"2025-02-16":44,"2025-06-09":32,"2024-12-10":83,"2024-05-08":80,"2024-06-03":73,"2025-08-09":33,"2024-06-20":87,"2024-05-19":75,"2025-01-11":57,"2025-01-23":47,"2025-02-28":50,"2025-06-06":32,"2025-06-17":32,"2025-07-20":30,"2025-08-05":33,"2025-10-21":26,"2025-03-19":57,"2024-11-02":104,"2024-06-11":73,"2024-08-02":45,"2024-05-05":87,"2025-03-27":58,"2025-07-01":33,"2025-10-09":28,"2025-10-20":26,"2025-04-15":34,"2025-06-11":32,"2025-05-04":34,"2024-05-13":79,"2024-07-05":84,"2025-05-22":34,"2025-09-22":32,"2024-06-01":73,"2024-06-19":84,"2024-12-06":86,"2025-05-05":34,"2024-08-13":80,"2024-08-27":95,"2024-06-10":76,"2025-06-10":32,"2024-07-11":73,"2025-01-03":44,"2025-03-22":66,"2025-10-19":26,"2025-10-24":26,"2024-06-17":85,"2024-10-12":102,"2025-01-28":38,"2024-10-20":100,"2024-12-23":66,"2025-03-25":57,"2025-09-04":28,"2025-06-15":32,"2024-06-22":86,"2024-08-22":86,"2024-04-24":84,"2025-07-17":29,"2025-08-26":29,"2024-09-07":98,"2024-05-26":78,"2025-05-03":32,"2024-07-20":90,"2025-06-16":32,"2024-08-20":83,"2025-05-07":34,"2024-09-30":93,"2024-07-08":82,"2024-10-06":91,"2025-03-23":58,"2025-10-15":30,"2024-08-19":88,"2024-11-12":99,"2025-02-02":35,"2024-09-01":91,"2024-06-04":76,"2024-07-22":80,"2024-05-12":79,"2024-06-29":90,"2025-04-30":33,"2025-09-15":32,"2024-05-09":72,"2025-08-02":32,"2024-07-18":75,"2024-06-16":87,"2025-09-28":30,"2024-08-08":71,"2024-12-17":80,"2025-02-07":33,"2025-05-12":34,"2025-06-22":33,"2024-04-20":92,"2024-11-15":100,"2025-07-14":29,"2025-02-06":33,"2024-12-13":79,"2025-01-15":50,"2024-11-09":104,"2024-11-28":87,"2024-11-22":100,"2024-11-30":92,"2024-12-22":67,"2025-01-10":51,"2024-11-13":99,"2025-02-03":32,"2025-10-14":28,"2024-07-14":74,"2025-06-08":32,"2025-09-29":30,"2024-05-31":70,"2025-05-24":34,"2024-10-08":96,"2024-05-18":82,"2025-01-04":62,"2024-06-21":87,"2024-05-23":78,"2025-03-06":47,"2025-08-11":31,"2024-10-23":97,"2024-07-07":85,"2024-07-28":73,"2025-10-31":26,"2025-08-19":32,"2024-07-27":79,"2024-11-17":99,"2025-01-16":51,"2025-02-25":49,"2024-05-27":86,"2025-08-25":30,"2025-05-26":33,"2024-12-09":83,"2024-12-20":79,"2025-04-04":56,"2025-08-04":33,"2024-07-02":90,"2025-09-01":28,"2025-05-27":32,"2025-06-23":34,"2024-07-10":74,"2024-04-19":87,"2024-06-14":76,"2024-12-03":88,"2024-05-06":85,"2025-04-19":34,"2025-05-31":30,"2025-07-24":31,"2025-09-08":30,"2025-03-01":54,"2025-09-30":30,"2025-04-08":53,"2025-07-16":29,"2025-07-26":32,"2025-01-09":52,"2024-12-08":82,"2024-12-21":77,"2025-01-08":52,"2025-05-30":30,"2025-08-20":32,"2025-04-26":34,"2025-05-06":34,"2025-01-12":51,"2024-09-11":96,"2025-09-11":30,"2025-01-22":46,"2025-07-03":32,"2025-03-30":57,"2025-10-11":28,"2025-04-17":34,"2024-08-01":44,"2025-05-17":34,"2025-02-08":42,"2025-04-14":34,"2024-09-04":91,"2024-08-07":74,"2025-04-13":34,"2025-05-01":32,"2025-01-02":43,"2025-10-30":26,"2025-08-31":26,"2025-01-31":39,"2024-09-15":100,"2025-02-15":53,"2024-08-17":86,"2024-09-25":101,"2025-04-23":34,"2024-04-17":62,"2024-05-11":71,"2024-12-27":52,"2024-10-05":99,"2025-04-12":32,"2025-08-12":31,"2025-06-04":32,"2024-06-27":80,"2025-05-13":34,"2025-09-25":30,"2025-09-24":31,"2024-06-06":74,"2025-06-05":32,"2024-05-28":82,"2024-08-29":98,"2025-05-14":34,"2025-08-18":32,"2025-10-08":28,"2025-10-13":28,"2025-08-14":31,"2025-10-22":26,"2024-07-31":47,"2024-12-16":83,"2025-05-10":34,"2025-06-26":34,"2025-01-Line truncated
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
[{"2024-06-08":6,"2024-10-13":5,"2025-03-29":2,"2025-09-05":0,"2025-09-16":0,"2025-03-28":2,"2024-07-24":4,"2024-12-19":3,"2025-04-20":0,"2024-07-19":3,"2024-06-18":4,"2025-05-25":0,"2024-06-15":6,"2024-09-09":4,"2024-10-25":4,"2025-02-04":0,"2025-05-09":0,"2025-05-15":0,"2025-03-03":0,"2025-07-31":0,"2025-01-29":0,"2024-11-04":3,"2025-02-19":0,"2025-10-29":0,"2024-07-04":4,"2024-08-18":5,"2024-10-17":4,"2025-08-28":0,"2025-08-06":0,"2024-05-07":4,"2025-03-17":2,"2024-06-09":5,"2024-04-23":3,"2025-06-28":0,"2025-02-27":0,"2025-07-02":0,"2024-08-04":1,"2024-12-01":3,"2024-12-04":3,"2024-09-08":5,"2024-07-15":3,"2025-10-28":0,"2025-07-28":0,"2025-07-18":0,"2024-04-18":2,"2024-07-03":4,"2024-10-30":4,"2024-12-14":4,"2024-11-23":4,"2024-12-18":3,"2025-09-09":0,"2025-03-31":2,"2025-08-30":0,"2024-04-26":3,"2024-12-07":4,"2025-03-05":0,"2025-05-20":0,"2024-05-22":4,"2024-10-15":4,"2024-10-22":4,"2024-12-26":3,"2025-07-07":0,"2025-06-01":0,"2025-03-12":2,"2024-06-23":5,"2025-08-15":0,"2024-09-14":6,"2025-09-03":0,"2025-09-18":0,"2024-04-27":6,"2024-07-12":4,"2025-06-19":0,"2024-05-16":4,"2024-11-06":3,"2025-05-16":0,"2025-08-03":0,"2025-05-18":0,"2024-09-10":4,"2024-08-09":3,"2024-09-16":4,"2025-10-02":0,"2024-06-26":4,"2025-09-23":0,"2024-08-12":4,"2024-10-29":4,"2025-02-20":0,"2024-11-29":3,"2024-08-05":3,"2024-06-05":4,"2025-04-09":2,"2025-07-09":0,"2025-09-07":0,"2025-03-16":2,"2024-06-13":4,"2024-11-07":3,"2024-11-19":3,"2024-08-03":2,"2025-08-08":0,"2025-08-24":0,"2025-10-17":0,"2024-09-29":4,"2025-01-26":0,"2025-02-16":0,"2025-06-09":0,"2024-12-10":3,"2024-05-08":4,"2024-06-03":4,"2025-08-09":0,"2024-06-20":4,"2024-05-19":5,"2025-01-11":0,"2025-01-23":2,"2025-02-28":0,"2025-06-06":0,"2025-06-17":0,"2025-07-20":0,"2025-08-05":0,"2025-10-21":0,"2025-03-19":2,"2024-11-02":4,"2024-06-11":4,"2024-08-02":1,"2024-05-05":5,"2025-03-27":2,"2025-07-01":0,"2025-10-09":0,"2025-10-20":0,"2025-04-15":0,"2025-06-11":0,"2025-05-04":0,"2024-05-13":4,"2024-07-05":4,"2025-05-22":0,"2025-09-22":0,"2024-06-01":6,"2024-06-19":4,"2024-12-06":3,"2025-05-05":0,"2024-08-13":4,"2024-08-27":4,"2024-06-10":4,"2025-06-10":0,"2024-07-11":4,"2025-01-03":0,"2025-03-22":2,"2025-10-19":0,"2025-10-24":0,"2024-06-17":4,"2024-10-12":6,"2025-01-28":0,"2024-10-20":5,"2024-12-23":3,"2025-03-25":2,"2025-09-04":0,"2025-06-15":0,"2024-06-22":6,"2024-08-22":4,"2024-04-24":3,"2025-07-17":0,"2025-08-26":0,"2024-09-07":6,"2024-05-26":5,"2025-05-03":0,"2024-07-20":6,"2025-06-16":0,"2024-08-20":4,"2025-05-07":0,"2024-09-30":3,"2024-07-08":4,"2024-10-06":4,"2025-03-23":2,"2025-10-15":0,"2024-08-19":4,"2024-11-12":3,"2025-02-02":0,"2024-09-01":5,"2024-06-04":4,"2024-07-22":4,"2024-05-12":5,"2024-06-29":6,"2025-04-30":0,"2025-09-15":0,"2024-05-09":4,"2025-08-02":0,"2024-07-18":3,"2024-06-16":5,"2025-09-28":0,"2024-08-08":3,"2024-12-17":3,"2025-02-07":0,"2025-05-12":0,"2025-06-22":0,"2024-04-20":4,"2024-11-15":3,"2025-07-14":0,"2025-02-06":0,"2024-12-13":3,"2025-01-15":2,"2024-11-09":4,"2024-11-28":3,"2024-11-22":3,"2024-11-30":4,"2024-12-22":3,"2025-01-10":0,"2024-11-13":3,"2025-02-03":0,"2025-10-14":0,"2024-07-14":3,"2025-06-08":0,"2025-09-29":0,"2024-05-31":4,"2025-05-24":0,"2024-10-08":3,"2024-05-18":6,"2025-01-04":0,"2024-06-21":4,"2024-05-23":4,"2025-03-06":0,"2025-08-11":0,"2024-10-23":4,"2024-07-07":5,"2024-07-28":2,"2025-10-31":0,"2025-08-19":0,"2024-07-27":5,"2024-11-17":3,"2025-01-16":2,"2025-02-25":0,"2024-05-27":4,"2025-08-25":0,"2025-05-26":0,"2024-12-09":3,"2024-12-20":3,"2025-04-04":2,"2025-08-04":0,"2024-07-02":4,"2025-09-01":0,"2025-05-27":0,"2025-06-23":0,"2024-07-10":4,"2024-04-19":2,"2024-06-14":4,"2024-12-03":3,"2024-05-06":4,"2025-04-19":0,"2025-05-31":0,"2025-07-24":0,"2025-09-08":0,"2025-03-01":0,"2025-09-30":0,"2025-04-08":2,"2025-07-16":0,"2025-07-26":0,"2025-01-09":0,"2024-12-08":3,"2024-12-21":4,"2025-01-08":0,"2025-05-30":0,"2025-08-20":0,"2025-04-26":0,"2025-05-06":0,"2025-01-12":2,"2024-09-11":4,"2025-09-11":0,"2025-01-22":2,"2025-07-03":0,"2025-03-30":2,"2025-10-11":0,"2025-04-17":0,"2024-08-01":1,"2025-05-17":0,"2025-02-08":0,"2025-04-14":0,"2024-09-04":4,"2024-08-07":3,"2025-04-13":0,"2025-05-01":0,"2025-01-02":0,"2025-10-30":0,"2025-08-31":0,"2025-01-31":0,"2024-09-15":5,"2025-02-15":0,"2024-08-17":6,"2024-09-25":4,"2025-04-23":0,"2024-04-17":2,"2024-05-11":6,"2024-12-27":3,"2024-10-05":4,"2025-04-12":0,"2025-08-12":0,"2025-06-04":0,"2024-06-27":4,"2025-05-13":0,"2025-09-25":0,"2025-09-24":0,"2024-06-06":4,"2025-06-05":0,"2024-05-28":4,"2024-08-29":4,"2025-05-14":0,"2025-08-18":0,"2025-10-08":0,"2025-10-13":0,"2025-08-14":0,"2025-10-22":0,"2024-07-31":1,"2024-12-16":3,"2025-05-10":0,"2025-06-26":0,"2025-01-07":0,"2024-08-31":6,"2024-10-01":3,"2024-10-27":5,"2024-05-24":4,"2024-11-25":3,"2025-07-27":0,"2025-04-01":2,"2025-08-01":0,"2024-10-02":3,"2025-09-10":0,"2024-10-11":4,"2024-09-27":4,"2025-02-09":0,"2024-08-26":4,"2025-06-12":0,"2024-06-24":4,"2024-09-23":4,"2024-10-19":6,"2024-04-30":4,"2025-04-25":0,"2025-10-25":0,"2Line truncated
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
[{"2024-12-22":126,"2024-10-24":221,"2025-07-10":103,"2025-01-23":148,"2025-08-25":95,"2025-02-18":88,"2024-11-10":221,"2025-08-05":103,"2025-02-21":88,"2025-09-26":95,"2025-04-27":107,"2024-04-15":69,"2025-04-30":105,"2024-12-16":179,"2025-01-28":99,"2025-08-17":105,"2024-08-04":141,"2024-06-10":179,"2024-11-04":216,"2025-03-22":160,"2025-10-25":75,"2025-08-19":102,"2025-04-02":140,"2025-03-09":142,"2025-08-08":104,"2024-08-02":88,"2025-03-28":143,"2024-09-18":208,"2024-11-06":214,"2025-04-21":107,"2025-03-16":150,"2025-01-17":152,"2024-06-30":176,"2024-07-06":186,"2025-01-26":110,"2024-07-02":170,"2024-06-05":181,"2025-08-23":103,"2024-07-16":149,"2025-04-12":111,"2024-08-15":142,"2025-05-30":105,"2024-09-25":214,"2024-10-27":222,"2025-01-25":140,"2025-10-10":92,"2025-10-14":92,"2024-06-04":183,"2024-12-09":176,"2025-03-30":147,"2024-11-05":215,"2025-03-11":138,"2024-11-03":215,"2025-07-12":107,"2025-03-20":148,"2025-03-27":143,"2025-04-25":107,"2025-05-20":105,"2024-12-08":177,"2025-09-29":92,"2024-10-16":200,"2025-08-28":85,"2025-09-28":92,"2024-07-04":162,"2024-09-29":213,"2024-12-14":181,"2025-06-03":105,"2024-05-27":175,"2025-09-17":103,"2025-04-09":138,"2025-05-11":105,"2024-06-28":174,"2025-06-28":107,"2024-06-08":195,"2024-06-20":163,"2025-04-13":107,"2024-09-03":198,"2024-11-24":192,"2025-02-27":121,"2025-10-27":67,"2025-01-30":104,"2024-08-11":151,"2025-07-27":104,"2024-11-11":216,"2025-05-05":105,"2024-04-16":74,"2024-08-30":181,"2024-10-31":214,"2024-09-27":208,"2024-04-22":173,"2024-07-08":167,"2024-08-18":155,"2025-03-24":149,"2025-04-15":107,"2024-05-17":160,"2024-11-09":232,"2025-02-03":92,"2024-12-25":93,"2025-01-31":106,"2025-05-18":105,"2024-06-02":182,"2025-02-08":108,"2025-04-10":136,"2025-02-04":90,"2024-08-07":140,"2024-08-09":143,"2024-09-22":219,"2024-11-18":212,"2024-10-14":201,"2025-06-07":107,"2025-07-01":104,"2025-07-29":103,"2024-08-05":136,"2025-06-21":107,"2025-03-13":142,"2024-10-12":223,"2025-06-16":105,"2025-07-20":104,"2025-03-29":154,"2024-09-23":217,"2024-08-10":162,"2025-03-15":161,"2025-09-16":103,"2024-05-07":159,"2024-07-14":159,"2025-04-08":141,"2024-05-22":175,"2024-10-19":230,"2025-01-03":105,"2025-08-21":100,"2025-10-20":73,"2025-03-18":145,"2024-04-24":173,"2025-05-13":105,"2024-11-20":210,"2024-07-24":147,"2024-08-22":160,"2025-04-24":107,"2025-05-10":107,"2025-09-27":96,"2024-11-16":227,"2024-11-17":214,"2024-07-17":146,"2025-07-21":103,"2025-06-11":105,"2025-04-04":143,"2025-05-16":105,"2025-07-23":103,"2025-02-01":113,"2025-06-25":105,"2024-10-26":235,"2025-10-22":73,"2025-02-15":112,"2024-08-17":162,"2024-08-24":170,"2024-06-11":181,"2024-11-26":187,"2025-10-16":72,"2024-11-08":220,"2025-02-06":93,"2024-06-29":186,"2025-08-10":104,"2024-07-25":150,"2025-10-03":92,"2025-08-16":107,"2025-06-13":105,"2025-06-14":107,"2024-08-03":139,"2024-09-17":208,"2024-08-14":142,"2024-07-07":172,"2024-06-03":180,"2024-07-05":158,"2025-05-25":105,"2024-05-29":169,"2024-09-11":206,"2024-12-18":172,"2024-12-24":96,"2025-09-14":103,"2024-04-21":180,"2025-10-24":73,"2025-04-18":107,"2025-06-08":105,"2024-05-04":158,"2025-01-08":144,"2024-07-18":145,"2025-10-09":92,"2024-11-01":216,"2024-06-19":167,"2025-06-05":105,"2025-04-23":107,"2024-06-24":168,"2025-06-30":104,"2025-06-23":105,"2024-08-08":141,"2025-02-26":117,"2024-05-01":153,"2025-03-31":146,"2025-04-11":124,"2024-09-19":207,"2024-12-12":174,"2025-06-06":105,"2024-04-26":164,"2025-01-27":103,"2025-06-19":105,"2024-06-15":189,"2024-06-25":179,"2024-12-27":94,"2025-05-21":105,"2025-10-30":67,"2024-10-02":192,"2025-03-06":109,"2024-11-22":214,"2024-09-10":207,"2024-10-03":192,"2025-02-20":89,"2025-03-25":144,"2024-11-13":212,"2025-09-05":103,"2024-05-03":149,"2025-02-24":119,"2024-07-28":139,"2025-04-03":140,"2025-07-26":107,"2024-08-25":171,"2025-08-20":101,"2024-11-29":189,"2025-04-19":111,"2025-04-16":107,"2025-01-22":145,"2025-10-13":92,"2024-04-23":175,"2025-07-04":104,"2024-04-28":159,"2025-06-02":105,"2025-09-10":103,"2024-08-06":137,"2025-03-21":150,"2025-05-28":105,"2025-02-05":90,"2024-04-18":163,"2024-08-01":91,"2024-10-06":197,"2025-03-08":149,"2025-02-11":88,"2025-04-28":107,"2024-09-28":228,"2025-05-02":101,"2024-08-16":144,"2025-06-15":105,"2025-01-05":147,"2025-03-19":144,"2024-11-21":212,"2025-10-05":92,"2025-05-27":105,"2024-05-25":189,"2025-01-13":159,"2024-08-31":205,"2025-06-22":105,"2024-11-02":227,"2024-12-10":175,"2024-09-14":215,"2024-10-22":221,"2025-02-16":95,"2024-12-19":176,"2024-09-01":206,"2024-07-03":169,"2025-01-21":146,"2024-11-15":216,"2024-09-16":207,"2024-06-06":179,"2025-05-29":105,"2024-05-16":167,"2024-05-06":155,"2024-09-05":201,"2024-09-26":213,"2025-08-22":101,"2024-04-14":65,"2024-06-26":180,"2024-12-06":178,"2024-10-04":195,"2025-01-12":153,"2025-08-24":99,"2025-10-08":92,"2024-12-03":178,"2024-05-19":152,"2025-06-24":105,"2025-07-06":104,"2024-07-10":163,"2024-12-15":175,"2024-04-17":159,"2025-10-17":72,"2024-04-27":172,"2025-04-01":142,"2024-11-27":186,"2025-04-20":107,"2024Line truncated
|
|
||||||
@@ -28,25 +28,30 @@
|
|||||||
<div id="chart-heatmap"></div>
|
<div id="chart-heatmap"></div>
|
||||||
</article>
|
</article>
|
||||||
<script type="module">
|
<script type="module">
|
||||||
const hours = [
|
|
||||||
'12a', '1a', '2a', '3a', '4a', '5a', '6a',
|
|
||||||
'7a', '8a', '9a', '10a', '11a',
|
|
||||||
'12p', '1p', '2p', '3p', '4p', '5p',
|
|
||||||
'6p', '7p', '8p', '9p', '10p', '11p'
|
|
||||||
];
|
|
||||||
|
|
||||||
|
const sharedOptions = {
|
||||||
|
basic: {
|
||||||
|
color: ['#f1eef6','#bdc9e1','#74a9cf','#2b8cbe','#045a8d'],
|
||||||
|
grid: {
|
||||||
|
top: 20,
|
||||||
|
left: 60,
|
||||||
|
right: 0,
|
||||||
|
bottom: 50
|
||||||
|
},
|
||||||
|
name: (opt) => {
|
||||||
|
return {
|
||||||
|
name: opt.name,
|
||||||
|
nameLocation: opt.location,
|
||||||
|
nameGap: 24,
|
||||||
|
nameTextStyle: {
|
||||||
|
fontWeight: 'bold',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
const extractionDates = {!! json_encode($growth['dates']) !!};
|
const extractionDates = {!! json_encode($growth['dates']) !!};
|
||||||
|
|
||||||
|
|
||||||
// prettier-ignore
|
|
||||||
let data = [];
|
|
||||||
|
|
||||||
for(let i = 0; i <= extractionDates.length; i++){
|
|
||||||
for(let j = 0; j <= hours.length; j++){
|
|
||||||
data.push([j,i,Math.random() * 3]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const chartHeatmap = document.getElementById('chart-heatmap');
|
const chartHeatmap = document.getElementById('chart-heatmap');
|
||||||
const cHeatmap = echarts.init(chartHeatmap);
|
const cHeatmap = echarts.init(chartHeatmap);
|
||||||
const cHeatmapOptions = {
|
const cHeatmapOptions = {
|
||||||
@@ -54,16 +59,20 @@ const cHeatmapOptions = {
|
|||||||
position: 'top'
|
position: 'top'
|
||||||
},
|
},
|
||||||
grid: {
|
grid: {
|
||||||
top: 0,
|
top: 25,
|
||||||
right: 0,
|
right: 0,
|
||||||
bottom: 0,
|
bottom: 0,
|
||||||
left: 0
|
left: 0
|
||||||
},
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
|
name: 'Kurzzeitmietobjekt',
|
||||||
type: 'category',
|
type: 'category',
|
||||||
data: hours,
|
data: {!! json_encode($heat['property_ids']) !!},
|
||||||
splitArea: {
|
splitArea: {
|
||||||
show: false
|
show: false
|
||||||
|
},
|
||||||
|
axisLabel: {
|
||||||
|
show: true,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
@@ -74,25 +83,32 @@ const cHeatmapOptions = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
visualMap: {
|
visualMap: {
|
||||||
|
type: 'piecewise',
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 10,
|
max: 100,
|
||||||
calculable: true,
|
calculable: true,
|
||||||
orient: 'horizontal',
|
orient: 'horizontal',
|
||||||
left: 'center',
|
left: 'center',
|
||||||
bottom: '15%'
|
top: 0,
|
||||||
|
inRange: {
|
||||||
|
color: ['#f1eef6','#bdc9e1','#74a9cf','#2b8cbe','#045a8d']
|
||||||
|
},
|
||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
name: 'Punch Card',
|
name: 'Auslastung',
|
||||||
type: 'heatmap',
|
type: 'heatmap',
|
||||||
data: data,
|
data: {!! json_encode($heat['values']) !!},
|
||||||
label: {
|
label: {
|
||||||
show: false
|
show: false
|
||||||
},
|
},
|
||||||
|
tooltip: {
|
||||||
|
formatter: '{b0}: {c0}<br />{b1}: {c1}',
|
||||||
|
},
|
||||||
emphasis: {
|
emphasis: {
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
shadowBlur: 10,
|
borderColor: '#000',
|
||||||
shadowColor: 'rgba(0, 0, 0, 0.5)'
|
borderWidth: 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -104,19 +120,25 @@ cHeatmap.setOption(cHeatmapOptions);
|
|||||||
const chartPropsPerRegion = document.getElementById('chart-props-per-region');
|
const chartPropsPerRegion = document.getElementById('chart-props-per-region');
|
||||||
const cPropsPerRegion = echarts.init(chartPropsPerRegion);
|
const cPropsPerRegion = echarts.init(chartPropsPerRegion);
|
||||||
const cPropsPerRegionOptions = {
|
const cPropsPerRegionOptions = {
|
||||||
grid: {
|
grid: sharedOptions.basic.grid,
|
||||||
top: 20,
|
|
||||||
left: 30,
|
|
||||||
right: 0,
|
|
||||||
bottom: 20
|
|
||||||
|
|
||||||
},
|
|
||||||
xAxis: {
|
xAxis: {
|
||||||
|
name: 'Region',
|
||||||
|
nameLocation: 'center',
|
||||||
|
nameGap: 24,
|
||||||
|
nameTextStyle: {
|
||||||
|
fontWeight: 'bold',
|
||||||
|
},
|
||||||
type: 'category',
|
type: 'category',
|
||||||
data: {!! $propsPerRegion[0] !!}
|
data: {!! $propsPerRegion[0] !!}
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
type: 'value'
|
type: 'value',
|
||||||
|
name: 'Anzahl Kurzzeitmietobjekte',
|
||||||
|
nameLocation: 'middle',
|
||||||
|
nameGap: 38,
|
||||||
|
nameTextStyle: {
|
||||||
|
fontWeight: 'bold',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
@@ -142,18 +164,26 @@ const cExtractionsOptions = {
|
|||||||
legend: {
|
legend: {
|
||||||
data: filters.regions
|
data: filters.regions
|
||||||
},
|
},
|
||||||
grid: {
|
color: sharedOptions.basic.color,
|
||||||
left: '0',
|
grid: sharedOptions.basic.grid,
|
||||||
right: 10,
|
|
||||||
bottom: '0',
|
|
||||||
containLabel: true
|
|
||||||
},
|
|
||||||
xAxis: {
|
xAxis: {
|
||||||
|
name: 'Zeitpunkt Scraping',
|
||||||
|
nameLocation: 'center',
|
||||||
|
nameGap: 24,
|
||||||
|
nameTextStyle: {
|
||||||
|
fontWeight: 'bold',
|
||||||
|
},
|
||||||
type: 'category',
|
type: 'category',
|
||||||
boundaryGap: false,
|
boundaryGap: false,
|
||||||
data: extractionDates
|
data: extractionDates
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
|
name: 'Anzahl Kurzzeitmietobjekte',
|
||||||
|
nameLocation: 'center',
|
||||||
|
nameGap: 38,
|
||||||
|
nameTextStyle: {
|
||||||
|
fontWeight: 'bold',
|
||||||
|
},
|
||||||
type: 'value'
|
type: 'value'
|
||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
|
|||||||
@@ -1,27 +1,9 @@
|
|||||||
@extends('base')
|
@extends('base')
|
||||||
@section('main')
|
@section('main')
|
||||||
<article class="header">
|
<article style="grid-area: timeline;">
|
||||||
<header>
|
<div id="timeline"></div>
|
||||||
<h2>
|
|
||||||
Angaben zur Property
|
|
||||||
</h2>
|
|
||||||
</header>
|
|
||||||
<dl>
|
|
||||||
@foreach ($base as $dt => $dd)
|
|
||||||
<dt>{{ $dt }}</dt>
|
|
||||||
<dd>
|
|
||||||
@if ($dt === 'property_platform_id')
|
|
||||||
<a href="https://www.e-domizil.ch/rental/{{ $dd }}" rel="noopener noreferrer" target="_blank">
|
|
||||||
{{ $dd }}
|
|
||||||
</a>
|
|
||||||
@else
|
|
||||||
{{ $dd }}
|
|
||||||
@endif
|
|
||||||
</dd>
|
|
||||||
@endforeach
|
|
||||||
</dl>
|
|
||||||
</article>
|
</article>
|
||||||
<article class="header" style="grid-row-start: 1; grid-row-end: 3;">
|
<article class="header" style="grid-area: chart1;">
|
||||||
<header>
|
<header>
|
||||||
<h2 id="belegung-title">
|
<h2 id="belegung-title">
|
||||||
Belegung am {{ json_decode($extractiondates)[0] }}
|
Belegung am {{ json_decode($extractiondates)[0] }}
|
||||||
@@ -29,7 +11,16 @@
|
|||||||
</header>
|
</header>
|
||||||
<div id="chart-calendar"></div>
|
<div id="chart-calendar"></div>
|
||||||
</article>
|
</article>
|
||||||
<article class="header">
|
<article class="header" style="grid-area: chart3;">
|
||||||
|
<header>
|
||||||
|
<h2>
|
||||||
|
Auslastung nach Monat am 2024-04-15T07:06:22
|
||||||
|
</h2>
|
||||||
|
</header>
|
||||||
|
<div id="chart-capacity-monthly">
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
<article class="header" style="grid-area: chart2;">
|
||||||
<header>
|
<header>
|
||||||
<h2>
|
<h2>
|
||||||
Entwicklung der Verfügbarkeit
|
Entwicklung der Verfügbarkeit
|
||||||
@@ -37,7 +28,72 @@
|
|||||||
</header>
|
</header>
|
||||||
<div id="chart-capacity"></div>
|
<div id="chart-capacity"></div>
|
||||||
</article>
|
</article>
|
||||||
|
<article class="header" style="grid-area: chart4;">
|
||||||
|
<header>
|
||||||
|
<h2>
|
||||||
|
Auslastung Tage für Monat
|
||||||
|
</h2>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
</article>
|
||||||
<script type="module">
|
<script type="module">
|
||||||
|
const chartTimeline = document.getElementById('timeline');
|
||||||
|
const cTimeline = echarts.init(chartTimeline);
|
||||||
|
|
||||||
|
const cTimelineOptions = {
|
||||||
|
grid: {
|
||||||
|
show: false,
|
||||||
|
},
|
||||||
|
timeline: {
|
||||||
|
data: {!! $extractiondates !!},
|
||||||
|
playInterval: 2000,
|
||||||
|
axisType: 'time',
|
||||||
|
left: 8,
|
||||||
|
right: 8,
|
||||||
|
bottom: 0,
|
||||||
|
label: {
|
||||||
|
show: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
cTimeline.setOption(cTimelineOptions);
|
||||||
|
|
||||||
|
const chartCapacityMonthly = document.getElementById('chart-capacity-monthly');
|
||||||
|
const cCapacityMonthly = echarts.init(chartCapacityMonthly);
|
||||||
|
|
||||||
|
const cCapacityMonthlyOptions = {
|
||||||
|
timeline: {
|
||||||
|
show: false,
|
||||||
|
data: {!! $extractiondates !!},
|
||||||
|
axisType: 'time',
|
||||||
|
},
|
||||||
|
grid: {
|
||||||
|
top: 0,
|
||||||
|
bottom: 25,
|
||||||
|
left: 50,
|
||||||
|
right: 10
|
||||||
|
},
|
||||||
|
xAxis: {
|
||||||
|
type: 'value',
|
||||||
|
max: 100
|
||||||
|
},
|
||||||
|
yAxis: {
|
||||||
|
type: 'category',
|
||||||
|
},
|
||||||
|
options: [{
|
||||||
|
yAxis: {
|
||||||
|
data: ['Apr 24', 'May 24', 'Jun 24', 'Aug 24', 'Sep 24', 'Oct 24', 'Nov 24', 'Dec 24', 'Jan 25', 'Feb 25', 'Mar 25', 'Apr 25', 'May 25', 'Jun 25', 'Jul 25', 'Aug 25', 'Sep 25', 'Oct 25']
|
||||||
|
},
|
||||||
|
series: [{
|
||||||
|
type: 'bar',
|
||||||
|
data: [100, 80, 20, 20, 3, 23, 34, 23, 45, 12, 34,23,45,12,34,45,12,34]
|
||||||
|
}]
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
|
||||||
|
cCapacityMonthly.setOption(cCapacityMonthlyOptions);
|
||||||
|
|
||||||
const chartCapacity = document.getElementById('chart-capacity');
|
const chartCapacity = document.getElementById('chart-capacity');
|
||||||
const cCapacity = echarts.init(chartCapacity);
|
const cCapacity = echarts.init(chartCapacity);
|
||||||
|
|
||||||
@@ -46,9 +102,10 @@ const cCapacityOptions = {
|
|||||||
trigger: 'axis'
|
trigger: 'axis'
|
||||||
},
|
},
|
||||||
grid: {
|
grid: {
|
||||||
left: '0',
|
top: 20,
|
||||||
|
left: 0,
|
||||||
right: 10,
|
right: 10,
|
||||||
bottom: '0',
|
bottom: 0,
|
||||||
containLabel: true
|
containLabel: true
|
||||||
},
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
@@ -72,26 +129,20 @@ const cCapacityOptions = {
|
|||||||
|
|
||||||
cCapacity.setOption(cCapacityOptions);
|
cCapacity.setOption(cCapacityOptions);
|
||||||
|
|
||||||
|
|
||||||
const chartCalendar = document.getElementById('chart-calendar');
|
const chartCalendar = document.getElementById('chart-calendar');
|
||||||
const cCalendar = echarts.init(chartCalendar);
|
const cCalendar = echarts.init(chartCalendar);
|
||||||
const h2Belegung = document.getElementById('belegung-title');
|
const h2Belegung = document.getElementById('belegung-title');
|
||||||
|
|
||||||
const cCalendarOptions = {
|
const cCalendarOptions = {
|
||||||
timeline: {
|
timeline: {
|
||||||
|
show: false,
|
||||||
data: {!! $extractiondates !!},
|
data: {!! $extractiondates !!},
|
||||||
playInterval: 2000,
|
|
||||||
axisType: 'time',
|
axisType: 'time',
|
||||||
left: 0,
|
|
||||||
right: 0,
|
|
||||||
label: {
|
|
||||||
show: false
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
visualMap: {
|
visualMap: {
|
||||||
categories: [0,1,2],
|
categories: [0,1,2],
|
||||||
inRange: {
|
inRange: {
|
||||||
color: ['red', 'purple', 'green']
|
color: ['#d95f02', '#7570b3', '#1b9e77']
|
||||||
},
|
},
|
||||||
formatter: (cat) => {
|
formatter: (cat) => {
|
||||||
switch (cat) {
|
switch (cat) {
|
||||||
@@ -112,25 +163,25 @@ const cCalendarOptions = {
|
|||||||
{
|
{
|
||||||
orient: 'horizontal',
|
orient: 'horizontal',
|
||||||
range: '2024',
|
range: '2024',
|
||||||
top: '6.25%',
|
top: '15%',
|
||||||
right: 10,
|
right: 10,
|
||||||
bottom: '68.75%',
|
bottom: '65%',
|
||||||
left: 50,
|
left: 50,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
orient: 'horizontal',
|
orient: 'horizontal',
|
||||||
range: '2025',
|
range: '2025',
|
||||||
top: '37.5%',
|
top: '47%',
|
||||||
right: 10,
|
right: 10,
|
||||||
bottom: '37.25%',
|
bottom: '33%',
|
||||||
left: 50,
|
left: 50,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
orient: 'horizontal',
|
orient: 'horizontal',
|
||||||
range: '2026',
|
range: '2026',
|
||||||
top: '68.75%',
|
top: '79%',
|
||||||
right: 10,
|
right: 10,
|
||||||
bottom: '6.25%',
|
bottom: '1%',
|
||||||
left: 50,
|
left: 50,
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -161,13 +212,26 @@ const cCalendarOptions = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
cCalendar.setOption(cCalendarOptions);
|
cCalendar.setOption(cCalendarOptions);
|
||||||
cCalendar.on('timelinechanged', (e) => {
|
|
||||||
// Change header text according to datapoint
|
|
||||||
|
cTimeline.on('timelinechanged', (e) => {
|
||||||
|
|
||||||
h2Belegung.innerText = "Belegung am "+cCalendarOptions.timeline.data[e.currentIndex];
|
h2Belegung.innerText = "Belegung am "+cCalendarOptions.timeline.data[e.currentIndex];
|
||||||
|
|
||||||
// Set markpoint on linechart
|
// Set markpoint on linechart
|
||||||
let x = cCapacityOptions.xAxis.data[e.currentIndex];
|
let x = cCapacityOptions.xAxis.data[e.currentIndex];
|
||||||
let y = cCapacityOptions.series.data[e.currentIndex];
|
let y = cCapacityOptions.series.data[e.currentIndex];
|
||||||
|
|
||||||
|
cCapacityMonthly.dispatchAction({
|
||||||
|
type: 'timelineChange',
|
||||||
|
currentIndex: e.currentIndex
|
||||||
|
});
|
||||||
|
|
||||||
|
cCalendar.dispatchAction({
|
||||||
|
type: 'timelineChange',
|
||||||
|
currentIndex: e.currentIndex
|
||||||
|
});
|
||||||
|
|
||||||
cCapacity.setOption({
|
cCapacity.setOption({
|
||||||
series: {
|
series: {
|
||||||
markPoint: {
|
markPoint: {
|
||||||
@@ -177,16 +241,18 @@ cCalendar.on('timelinechanged', (e) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
cCapacity.on('click', 'series', (e) => {
|
cCapacity.on('click', 'series', (e) => {
|
||||||
|
|
||||||
// Switch to correct calendar in the timeline
|
// Switch to correct calendar in the timeline
|
||||||
cCalendar.dispatchAction({
|
cTimeline.dispatchAction({
|
||||||
type: 'timelineChange',
|
type: 'timelineChange',
|
||||||
currentIndex: e.dataIndex
|
currentIndex: e.dataIndex
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,12 +5,14 @@ use App\Api;
|
|||||||
|
|
||||||
Route::get('/', function () {
|
Route::get('/', function () {
|
||||||
|
|
||||||
|
$regionHeat = Api::regionCapacities(1);
|
||||||
$propertiesGrowth = Api::propertiesGrowth();
|
$propertiesGrowth = Api::propertiesGrowth();
|
||||||
$propsPerRegion = Api::propertiesPerRegion();
|
$propsPerRegion = Api::propertiesPerRegion();
|
||||||
$propsPerRegionName = [];
|
$propsPerRegionName = [];
|
||||||
$propsPerRegionCounts = [];
|
$propsPerRegionCounts = [];
|
||||||
|
|
||||||
|
// dump($regionHeat);
|
||||||
|
|
||||||
foreach ($propsPerRegion as $el) {
|
foreach ($propsPerRegion as $el) {
|
||||||
$propsPerRegionName[] = $el['name'];
|
$propsPerRegionName[] = $el['name'];
|
||||||
$propsPerRegionCounts[] = $el['count_properties'];
|
$propsPerRegionCounts[] = $el['count_properties'];
|
||||||
@@ -18,7 +20,7 @@ Route::get('/', function () {
|
|||||||
|
|
||||||
$propertiesGeo = Api::propertiesGeo();
|
$propertiesGeo = Api::propertiesGeo();
|
||||||
|
|
||||||
return view('overview', ["geo" => $propertiesGeo, "growth" => $propertiesGrowth, "propsPerRegion" => [json_encode($propsPerRegionName), json_encode($propsPerRegionCounts)]]);
|
return view('overview', ["heat" => $regionHeat, "geo" => $propertiesGeo, "growth" => $propertiesGrowth, "propsPerRegion" => [json_encode($propsPerRegionName), json_encode($propsPerRegionCounts)]]);
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::get('/prop/{id}', function (int $id) {
|
Route::get('/prop/{id}', function (int $id) {
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
# How to run
|
# How to run
|
||||||
```bash
|
```bash
|
||||||
fastapi dev api/main.py
|
fastapi dev api/main.py --port 8080
|
||||||
```
|
```
|
||||||
Reference in new issue
Block a user