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']) !!},