From cfffcd7d13fed20b666cad020d5501d80fa8d8b1 Mon Sep 17 00:00:00 2001 From: Arseniy Movshev Date: Sat, 10 Jun 2023 21:35:13 +0100 Subject: Add graph here --- src/graphs/HrGraph.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/graphs') diff --git a/src/graphs/HrGraph.qml b/src/graphs/HrGraph.qml index 5a2be8b..0973969 100644 --- a/src/graphs/HrGraph.qml +++ b/src/graphs/HrGraph.qml @@ -19,6 +19,7 @@ import QtQuick 2.15 import org.asteroid.controls 1.0 +import org.asteroid.health 1.0 import org.asteroid.sensorlogd 1.0 Item { @@ -41,7 +42,8 @@ Item { labelsRepeater.model = labelsArr.length } Component.onCompleted: { // I am so so sorry about this code. - loadGraphData(hrDataLoader.getTodayData()) + console.log(typeof hrDataLoader.getTodayData()) + hrGraph.loadGraphData(hrDataLoader.getTodayData()) console.log("minValue", hrGraph.minValue, "maxValue",hrGraph.maxValue) //values divisions valueDivisionsInterval = (valuesDelta) >= 50 ? 10 : 5 -- cgit v1.2.3-70-g09d2