diff options
Diffstat (limited to 'tradeshow/iot-sensortag/resources')
-rw-r--r-- | tradeshow/iot-sensortag/resources/base/TemperatureChart.qml | 3 |
1 files changed, 1 insertions, 2 deletions
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" |