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: {
|
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,
|
||||||
|
|
Loading…
Reference in New Issue