From 142046b1c62855b3ec509097bfa5a1fcb235b064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gi=C3=B2=20Diani?= Date: Fri, 17 Jan 2025 13:22:05 +0100 Subject: [PATCH] Achsenbeschriftungen und grid Heatmap --- dashboard/resources/views/overview.blade.php | 43 ++++++++++++++++---- dashboard/resources/views/region.blade.php | 43 ++++++++++++++++---- 2 files changed, 72 insertions(+), 14 deletions(-) diff --git a/dashboard/resources/views/overview.blade.php b/dashboard/resources/views/overview.blade.php index 14281ee..f5eaf74 100644 --- a/dashboard/resources/views/overview.blade.php +++ b/dashboard/resources/views/overview.blade.php @@ -116,8 +116,8 @@ const cHeatmapOptions = { borderColor: '#aaa', top: 30, right: 45, - bottom: 50, - left: 5 + bottom: 70, + left: 30 }, dataZoom: [{ type: 'slider' @@ -128,23 +128,52 @@ const cHeatmapOptions = { yAxisIndex: 0, }], xAxis: { - show: false, - name: 'Kurzzeitmietobjekt', + show: true, + name: 'Zeitpunkt Scraping', type: 'category', data: extractionDates, splitArea: { show: false }, + splitArea: { + show: false + }, axisLabel: { - show: true, + show: false, + }, + axisTick: { + show: false, + }, + axisLine: { + show: false, + }, + nameLocation: 'center', + nameGap: 10, + nameTextStyle: { + fontWeight: 'bold', } }, yAxis: { - show: false, + show: true, type: 'category', data: {!! json_encode($regionPropertiesCapacities['property_ids']) !!}, splitArea: { - show: true + show: false + }, + axisTick: { + show: false, + }, + axisLine: { + show: false, + }, + axisLabel: { + show: false, + }, + name: 'Mietobjekte', + nameLocation: 'center', + nameGap: 10, + nameTextStyle: { + fontWeight: 'bold', } }, visualMap: { diff --git a/dashboard/resources/views/region.blade.php b/dashboard/resources/views/region.blade.php index 8cbbd8f..84f9ec1 100644 --- a/dashboard/resources/views/region.blade.php +++ b/dashboard/resources/views/region.blade.php @@ -353,8 +353,8 @@ const cHeatmapOptions = { borderColor: '#aaa', top: 30, right: 45, - bottom: 50, - left: 5 + bottom: 70, + left: 30 }, dataZoom: [{ type: 'slider' @@ -365,23 +365,52 @@ const cHeatmapOptions = { yAxisIndex: 0, }], xAxis: { - show: false, - name: 'Kurzzeitmietobjekt', + show: true, + name: 'Zeitpunkt Scraping', type: 'category', data: {!! json_encode($regionPropertiesCapacities['scrapeDates']) !!}, splitArea: { show: false }, + splitArea: { + show: false + }, axisLabel: { - show: true, + show: false, + }, + axisTick: { + show: false, + }, + axisLine: { + show: false, + }, + nameLocation: 'center', + nameGap: 10, + nameTextStyle: { + fontWeight: 'bold', } }, yAxis: { - show: false, + show: true, type: 'category', data: {!! json_encode($regionPropertiesCapacities['property_ids']) !!}, splitArea: { - show: true + show: false + }, + axisTick: { + show: false, + }, + axisLine: { + show: false, + }, + axisLabel: { + show: false, + }, + name: 'Mietobjekte', + nameLocation: 'center', + nameGap: 10, + nameTextStyle: { + fontWeight: 'bold', } }, visualMap: {