Skip to content

Commit

Permalink
Add units in chart Y axis ticks.
Browse files Browse the repository at this point in the history
  • Loading branch information
loociano committed Jun 9, 2020
1 parent 804964e commit b0e8099
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/qml/TemperatureChart.qml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ Chart {
ticks: {
max: maxTemperature,
min: 0,
maxTicksLimit: 2
maxTicksLimit: 2,
fontSize: 10,
callback: function(value, index, values) {
return value + 'ºC';
},
}
}]
}
Expand Down

0 comments on commit b0e8099

Please sign in to comment.