Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 9a7e49b

Browse files
Making changes in chart-device-data.js (#45)
1 parent 92c8bca commit 9a7e49b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public/js/chart-device-data.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ $(document).ready(() => {
124124
chartData.labels = device.timeData;
125125
chartData.datasets[0].data = device.temperatureData;
126126
chartData.datasets[1].data = device.humidityData;
127+
myLineChart.update();
127128
}
128129
listOfDevices.addEventListener('change', OnSelectionChange, false);
129130

@@ -174,4 +175,4 @@ $(document).ready(() => {
174175
console.error(err);
175176
}
176177
};
177-
});
178+
});

0 commit comments

Comments
 (0)