Nachbaren in Popup
This commit is contained in:
1 parent
638d835d3b
commit
3b935a4d20
3 files changed
+78
-9
No files matched your search
@@ -12,6 +12,12 @@
|
||||
<dt>Zum letzten mal gefunden</dt>
|
||||
<dd>{{ $base['last_found'] }}</dd>
|
||||
</dl>
|
||||
<h2>Kurzzeitmietobjekte in der Nähe</h2>
|
||||
<ul>
|
||||
@foreach($neighbours as $n)
|
||||
<li><a href="/prop/{{ $n['id'] }}">{{ $n['lat'] }}, {{$n['lon']}}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@@ -55,7 +61,7 @@
|
||||
Auslastung Tage für Monat
|
||||
</h2>
|
||||
</header>
|
||||
|
||||
<div id="chart-capacity-daily">
|
||||
</article>
|
||||
<script type="module">
|
||||
const chartTimeline = document.getElementById('timeline');
|
||||
@@ -119,6 +125,46 @@ const cCapacityMonthlyOptions = {
|
||||
|
||||
cCapacityMonthly.setOption(cCapacityMonthlyOptions);
|
||||
|
||||
|
||||
const chartCapacityDaily = document.getElementById('chart-capacity-daily');
|
||||
const cCapacityDaily = echarts.init(chartCapacityDaily);
|
||||
|
||||
const cCapacityDailyOptions = {
|
||||
timeline: {
|
||||
show: false,
|
||||
data: {!! $extractiondates !!},
|
||||
axisType: 'time',
|
||||
},
|
||||
grid: {
|
||||
top: 0,
|
||||
bottom: 25,
|
||||
left: 70,
|
||||
right: 10
|
||||
},
|
||||
xAxis: {
|
||||
type: 'value',
|
||||
max: 100
|
||||
},
|
||||
yAxis: {
|
||||
type: 'category',
|
||||
},
|
||||
options: [
|
||||
@foreach ($capacitiesDaily as $cD)
|
||||
{
|
||||
yAxis: {
|
||||
data: {!! json_encode($cD['weekdays']) !!}
|
||||
},
|
||||
series: [{
|
||||
type: 'bar',
|
||||
data: {!! json_encode($cM['capacities']) !!}
|
||||
}]
|
||||
},
|
||||
@endforeach
|
||||
]
|
||||
};
|
||||
|
||||
cCapacityDaily.setOption(cCapacityDailyOptions);
|
||||
|
||||
const chartCapacity = document.getElementById('chart-capacity');
|
||||
const cCapacity = echarts.init(chartCapacity);
|
||||
|
||||
@@ -156,13 +202,18 @@ const cCapacityOptions = {
|
||||
fontWeight: 'bold',
|
||||
}
|
||||
},
|
||||
series: {
|
||||
name: 'Alle',
|
||||
series: [{
|
||||
name: 'Auslastung',
|
||||
type: 'line',
|
||||
stack: 'Total',
|
||||
symbolSize: 7,
|
||||
data: {!! json_encode($capacities['capacities']) !!}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'Auslastung Region',
|
||||
type: 'line',
|
||||
symbolSize: 7,
|
||||
data: {!! json_encode($capacities['capacities']) !!}
|
||||
}]
|
||||
};
|
||||
|
||||
cCapacity.setOption(cCapacityOptions);
|
||||
|
||||
Reference in new issue
Block a user