Fix chart precision
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Simon 2021-10-06 02:13:14 +01:00
parent 76e35c7a63
commit ed30c8de24
1 changed files with 4 additions and 2 deletions

View File

@ -35,7 +35,8 @@ function CreateChart(ctx, temp, humidity) {
ticks: { ticks: {
callback: function (value, index, values) { callback: function (value, index, values) {
return value + '°C'; return value + '°C';
} },
precision: 1,
} }
}, },
humid: { humid: {
@ -47,7 +48,8 @@ function CreateChart(ctx, temp, humidity) {
ticks: { ticks: {
callback: function (value, index, values) { callback: function (value, index, values) {
return value + '%'; return value + '%';
} },
precision: 0,
}, },
grid: { grid: {
drawOnChartArea: false, drawOnChartArea: false,