Skip to content

Commit

Permalink
PR edit: rename variable to match data name
Browse files Browse the repository at this point in the history
  • Loading branch information
partly-igor committed Sep 12, 2024
1 parent 3c5ba01 commit 50c1797
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);

Expand Down Expand Up @@ -66,7 +66,7 @@ for (const container of chartContainers) {
datasets: [
{
label: "Humidity",
data: pops,
data: humidity,
datalabels: {
align: "end",
anchor: "end",
Expand Down

0 comments on commit 50c1797

Please sign in to comment.