diff --git a/ruoyi-admin/src/main/resources/templates/system/ArrayTemperatureData/ArrayTemperatureData.html b/ruoyi-admin/src/main/resources/templates/system/ArrayTemperatureData/ArrayTemperatureData.html index 092d672..52c527a 100644 --- a/ruoyi-admin/src/main/resources/templates/system/ArrayTemperatureData/ArrayTemperatureData.html +++ b/ruoyi-admin/src/main/resources/templates/system/ArrayTemperatureData/ArrayTemperatureData.html @@ -84,7 +84,7 @@ getColorByTemperature={} for (var i = 0; i <= sum; i++) { - getColorByTemperature[20+i] = getGradientColor(i,sum) + getColorByTemperature[(Math.min(...tems))+i] = getGradientColor(i,sum) } for(i in e.rows[0]){ if(i.includes('site')){