From b0e809967111b525447cff4ba77c7c2bb1adb81b Mon Sep 17 00:00:00 2001 From: Luc Rubio Date: Tue, 9 Jun 2020 21:47:16 +0100 Subject: [PATCH] Add units in chart Y axis ticks. --- resources/qml/TemperatureChart.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/qml/TemperatureChart.qml b/resources/qml/TemperatureChart.qml index 7606994..336b15a 100644 --- a/resources/qml/TemperatureChart.qml +++ b/resources/qml/TemperatureChart.qml @@ -68,7 +68,11 @@ Chart { ticks: { max: maxTemperature, min: 0, - maxTicksLimit: 2 + maxTicksLimit: 2, + fontSize: 10, + callback: function(value, index, values) { + return value + 'ÂșC'; + }, } }] }