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

Commit

Permalink
Making changes in chart-device-data.js (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
manohar-rajawat authored Apr 27, 2020
1 parent 92c8bca commit 9a7e49b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/js/chart-device-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ $(document).ready(() => {
chartData.labels = device.timeData;
chartData.datasets[0].data = device.temperatureData;
chartData.datasets[1].data = device.humidityData;
myLineChart.update();
}
listOfDevices.addEventListener('change', OnSelectionChange, false);

Expand Down Expand Up @@ -174,4 +175,4 @@ $(document).ready(() => {
console.error(err);
}
};
});
});

0 comments on commit 9a7e49b

Please sign in to comment.