diff --git a/dashboard/app/Api.php b/dashboard/app/Api.php index dcea549..6d36821 100644 --- a/dashboard/app/Api.php +++ b/dashboard/app/Api.php @@ -109,7 +109,7 @@ class Api public static function regionMovingAverage(int $id, string $date): mixed { - return self::get("/region/{$id}/movingAverage/{$date}"); + return self::get("/region/{$id}/moving-average/{$date}"); } } diff --git a/dashboard/resources/views/overview.blade.php b/dashboard/resources/views/overview.blade.php index 43bdfd4..e5a4147 100644 --- a/dashboard/resources/views/overview.blade.php +++ b/dashboard/resources/views/overview.blade.php @@ -350,12 +350,6 @@ cHeatmap.on('click', 'series', (e) => { window.open(`/property/${e.value[1]}?date=${e.value[0]}`, '_self'); }) -cPropsPerRegion.on('click', 'series', (e) => { - console.log(e.dataIndex); - //window.open(`/property/${e.value[1]}?date=${e.value[0]}`, '_self'); -}) - - @endsection diff --git a/dashboard/resources/views/region.blade.php b/dashboard/resources/views/region.blade.php index e8deb05..d02f95c 100644 --- a/dashboard/resources/views/region.blade.php +++ b/dashboard/resources/views/region.blade.php @@ -2,7 +2,7 @@ @section('body-class', 'region') @section('header')