mirror of
https://github.com/bendtherules/mispair-demo.git
synced 2026-08-18 13:22:17 +00:00
Extract raw value in data.js, use fixed 200°C max for bar height, add hover tooltip
This commit is contained in:
+2
-3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user