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