fix error in tooltip of moving average chart

main
Giò Diani 2025-01-17 17:37:01 +01:00
parent 7497271ac8
commit 4e233da745
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ const sharedOptions = {
tooltip: { tooltip: {
show: true, show: true,
trigger: 'axis', trigger: 'axis',
valueFormatter: (value) => value.toFixed(2)+'%' valueFormatter: (value) => value == null ? 'N/A' : value.toFixed(2)+'%'
}, },
name: (opt) => { name: (opt) => {
return { return {
@ -245,7 +245,7 @@ const chartPrediction = document.getElementById('chart-prediction');
const cPrediction = echarts.init(chartPrediction); const cPrediction = echarts.init(chartPrediction);
const cPredictionOptions = { const cPredictionOptions = {
color: sharedOptions.basic.color, color: sharedOptions.basic.color,
timeline: { timeline: {
show: false, show: false,
data: {!! json_encode($regionCapacities['region']['dates']) !!}, data: {!! json_encode($regionCapacities['region']['dates']) !!},