Überarbeitung Property
This commit is contained in:
1 parent
67c0d85213
commit
992e299829
5 files changed
+69
-34
No files matched your search
@@ -139,7 +139,7 @@ body.overview main{
|
||||
"chart3 chart3 chart3 chart2 chart2 chart2 chart4 chart4"
|
||||
}
|
||||
|
||||
body.property main{
|
||||
body.timeline main{
|
||||
grid-template-columns: repeat(4, minmax(10%, 50%));
|
||||
grid-template-rows: repeat(3, 1fr) 4em;
|
||||
grid-template-areas:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@extends('base')
|
||||
@section('body-class', 'property')
|
||||
@section('body-class', 'timeline')
|
||||
|
||||
@section('header')
|
||||
<span>Property {{ $base['property_platform_id'] }}</span><button popovertarget="prop-details"></button>
|
||||
@@ -28,7 +28,7 @@
|
||||
<article class="header" style="grid-area: chart1;">
|
||||
<header>
|
||||
<h2 id="belegung-title">
|
||||
Belegung am {{ json_decode($extractiondates)[0] }}
|
||||
Belegung am
|
||||
</h2>
|
||||
</header>
|
||||
<div id="chart-calendar"></div>
|
||||
@@ -169,9 +169,12 @@ const chartCapacity = document.getElementById('chart-capacity');
|
||||
const cCapacity = echarts.init(chartCapacity);
|
||||
|
||||
const cCapacityOptions = {
|
||||
legend: {
|
||||
data: ['Auslastung Property', 'Auslastung {{ $base['region_name'] }}', 'Auslastung alle Regionen']
|
||||
},
|
||||
tooltip: {
|
||||
trigger: 'axis',
|
||||
formatter: 'Datum Scraping: {b}<br />Verfügbarkeit: {c} %'
|
||||
valueFormatter: (value) => value.toFixed(2)+' %'
|
||||
},
|
||||
grid: {
|
||||
top: 20,
|
||||
@@ -183,7 +186,7 @@ const cCapacityOptions = {
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
boundaryGap: false,
|
||||
data: {!! json_encode($capacities['dates']) !!},
|
||||
data: {!! json_encode($propertyCapacities['dates']) !!},
|
||||
name: 'Zeitpunkt Scraping',
|
||||
nameLocation: 'center',
|
||||
nameGap: 24,
|
||||
@@ -202,18 +205,26 @@ const cCapacityOptions = {
|
||||
fontWeight: 'bold',
|
||||
}
|
||||
},
|
||||
series: [{
|
||||
name: 'Auslastung',
|
||||
type: 'line',
|
||||
symbolSize: 7,
|
||||
data: {!! json_encode($capacities['capacities']) !!}
|
||||
},
|
||||
series: [
|
||||
{
|
||||
name: 'Auslastung Region',
|
||||
type: 'line',
|
||||
symbolSize: 7,
|
||||
data: {!! json_encode($capacities['capacities']) !!}
|
||||
}]
|
||||
name: 'Auslastung Property',
|
||||
type: 'line',
|
||||
symbolSize: 7,
|
||||
data: {!! json_encode($propertyCapacities['capacities']) !!}
|
||||
},
|
||||
{
|
||||
name: 'Auslastung {{ $base['region_name'] }}',
|
||||
type: 'line',
|
||||
symbolSize: 7,
|
||||
data: {!! json_encode($regionCapacities[0]) !!}
|
||||
},
|
||||
{
|
||||
name: 'Auslastung alle Regionen',
|
||||
type: 'line',
|
||||
symbolSize: 7,
|
||||
data: {!! json_encode($regionCapacities[1]) !!}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
cCapacity.setOption(cCapacityOptions);
|
||||
@@ -225,7 +236,7 @@ const h2Belegung = document.getElementById('belegung-title');
|
||||
const cCalendarOptions = {
|
||||
timeline: {
|
||||
show: false,
|
||||
data: {!! $extractiondates !!},
|
||||
data: {!! json_encode($propertyCapacities['dates']) !!},
|
||||
axisType: 'time',
|
||||
},
|
||||
visualMap: {
|
||||
|
||||
Reference in new issue
Block a user