diff --git a/eltiempo/js/estadisticas.js b/eltiempo/js/estadisticas.js index b81a09c..0981d6e 100644 --- a/eltiempo/js/estadisticas.js +++ b/eltiempo/js/estadisticas.js @@ -104,7 +104,7 @@ function renderTrend(data) { }); const container = $("trend-container"); - container.innerHTML = ""; + container.innerHTML = ""; Object.keys(byYear) .sort() @@ -114,14 +114,15 @@ function renderTrend(data) { const rainTotal = (byYear[year].rain.reduce((a, b) => a + b, 0)).toFixed(1); container.innerHTML += ` -

- ${year} → - Máx ${maxAvg}°C · - Mín ${minAvg}°C · - Lluvia ${rainTotal} mm -

+ + + + + + `; }); + container.innerHTML += "
AñoTemp. Máx. AvgTemp. Mín. AvgLluvia Total
${year} ${maxAvg}°C${minAvg}°C${rainTotal} mm
"; } /* ---------- INIT ---------- */