From d49cdefe565d170279d97d3cfedccd1e2111051a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kari=20Hautam=C3=A4ki?= Date: Wed, 8 Feb 2017 11:26:05 +0200 Subject: iot-sensortag: Fix alignment of graph in TemperatureChart - Chart data is correctly aligned vertically - remove unused (and bound in wrong way) avgValue Change-Id: I6adf7cfdbc3b13e54b982f6c50e2ae426ffadea6 Reviewed-by: Titta Heikkala --- tradeshow/iot-sensortag/resources/base/TemperatureChart.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tradeshow/iot-sensortag/resources') diff --git a/tradeshow/iot-sensortag/resources/base/TemperatureChart.qml b/tradeshow/iot-sensortag/resources/base/TemperatureChart.qml index 1482856..a7c3ab6 100644 --- a/tradeshow/iot-sensortag/resources/base/TemperatureChart.qml +++ b/tradeshow/iot-sensortag/resources/base/TemperatureChart.qml @@ -60,10 +60,9 @@ BaseChart { property real minimum: 10 property real maximum: 40 - property real defaultAvgValue: maximum - minimum + property real defaultAvgValue: (maximum + minimum) / 2 property real minValue: defaultAvgValue property real maxValue: defaultAvgValue - readonly property real avgValue: (maxValue - minValue) / 2 property real value readonly property color legendColor: "white" -- cgit v1.2.3