From 774e30c945a60ec44179c1e9f0fe5aea38bbeee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gi=C3=B2=20Diani?= Date: Thu, 9 Jan 2025 18:49:09 +0100 Subject: [PATCH] fix daily chart --- dashboard/resources/views/property.blade.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dashboard/resources/views/property.blade.php b/dashboard/resources/views/property.blade.php index 3ba8e59..4326599 100644 --- a/dashboard/resources/views/property.blade.php +++ b/dashboard/resources/views/property.blade.php @@ -156,7 +156,7 @@ const cCapacityDailyOptions = { }, series: [{ type: 'bar', - data: {!! json_encode($cM['capacities']) !!} + data: {!! json_encode($cD['capacities']) !!} }] }, @endforeach @@ -309,13 +309,18 @@ cTimeline.on('timelinechanged', (e) => { // Set markpoint on linechart let x = cCapacityOptions.xAxis.data[e.currentIndex]; - let y = cCapacityOptions.series.data[e.currentIndex]; + let y = cCapacityOptions.series[0].data[e.currentIndex]; cCapacityMonthly.dispatchAction({ type: 'timelineChange', currentIndex: e.currentIndex }); + cCapacityDaily.dispatchAction({ + type: 'timelineChange', + currentIndex: e.currentIndex + }); + cCalendar.dispatchAction({ type: 'timelineChange', currentIndex: e.currentIndex