From 4e233da745313e36c63c2619f8403be1aebfb823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gi=C3=B2=20Diani?= Date: Fri, 17 Jan 2025 17:37:01 +0100 Subject: [PATCH] fix error in tooltip of moving average chart --- dashboard/resources/views/region.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/resources/views/region.blade.php b/dashboard/resources/views/region.blade.php index a83677b..57e2501 100644 --- a/dashboard/resources/views/region.blade.php +++ b/dashboard/resources/views/region.blade.php @@ -74,7 +74,7 @@ const sharedOptions = { tooltip: { show: true, trigger: 'axis', - valueFormatter: (value) => value.toFixed(2)+' %' + valueFormatter: (value) => value == null ? 'N/A' : value.toFixed(2)+' %' }, name: (opt) => { return { @@ -245,7 +245,7 @@ const chartPrediction = document.getElementById('chart-prediction'); const cPrediction = echarts.init(chartPrediction); const cPredictionOptions = { - color: sharedOptions.basic.color, + color: sharedOptions.basic.color, timeline: { show: false, data: {!! json_encode($regionCapacities['region']['dates']) !!},