From 50c179730d52ffb5ab8504e8058fff1f13fec48f Mon Sep 17 00:00:00 2001 From: partly-igor Date: Thu, 12 Sep 2024 14:22:19 -0400 Subject: [PATCH] PR edit: rename variable to match data name --- .../new_weather_theme/assets/js/charts/hourly-humidity.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/themes/new_weather_theme/assets/js/charts/hourly-humidity.js b/web/themes/new_weather_theme/assets/js/charts/hourly-humidity.js index e73c4b3c1..8a88f4acc 100644 --- a/web/themes/new_weather_theme/assets/js/charts/hourly-humidity.js +++ b/web/themes/new_weather_theme/assets/js/charts/hourly-humidity.js @@ -10,7 +10,7 @@ const chartContainers = Array.from( for (const container of chartContainers) { const times = JSON.parse(container.dataset.times); - const pops = JSON.parse(container.dataset.humidity).map((v) => + const humidity = JSON.parse(container.dataset.humidity).map((v) => Number.parseInt(v, 10), ); @@ -66,7 +66,7 @@ for (const container of chartContainers) { datasets: [ { label: "Humidity", - data: pops, + data: humidity, datalabels: { align: "end", anchor: "end",