diff options
author | Arseniy Movshev <dodoradio@outlook.com> | 2023-06-10 21:35:13 +0100 |
---|---|---|
committer | Arseniy Movshev <dodoradio@outlook.com> | 2023-06-29 00:59:44 +0100 |
commit | cfffcd7d13fed20b666cad020d5501d80fa8d8b1 (patch) | |
tree | 7ccf1c8547508d80d532ddbcbcbb15dbe07de2e7 /src/graphs | |
parent | d5f695da5c7fd112d72e0df3f2ec72371c3d3adc (diff) |
Add graph here
Diffstat (limited to 'src/graphs')
-rw-r--r-- | src/graphs/HrGraph.qml | 4 |
1 files changed, 3 insertions, 1 deletions
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 |