Fix chart precision
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
76e35c7a63
commit
ed30c8de24
|
@ -35,7 +35,8 @@ function CreateChart(ctx, temp, humidity) {
|
|||
ticks: {
|
||||
callback: function (value, index, values) {
|
||||
return value + '°C';
|
||||
}
|
||||
},
|
||||
precision: 1,
|
||||
}
|
||||
},
|
||||
humid: {
|
||||
|
@ -47,7 +48,8 @@ function CreateChart(ctx, temp, humidity) {
|
|||
ticks: {
|
||||
callback: function (value, index, values) {
|
||||
return value + '%';
|
||||
}
|
||||
},
|
||||
precision: 0,
|
||||
},
|
||||
grid: {
|
||||
drawOnChartArea: false,
|
||||
|
|
Loading…
Reference in New Issue