Extract raw value in data.js, use fixed 200°C max for bar height, add hover tooltip

This commit is contained in:
2026-06-22 18:56:07 +05:30
parent 551278b904
commit 94bd3de12d
2 changed files with 8 additions and 14 deletions
+2 -3
View File
@@ -5,7 +5,6 @@ async function fetchTemperature(zoneId) {
// Don't change this function signature
export async function attachChart(chartInstance, zoneId) {
await fetchTemperature(zoneId).then(temp => {
chartInstance.update(temp);
});
const temp = await fetchTemperature(zoneId);
chartInstance.update(temp.value);
}