diff --git a/ManagementPage/ManagementPage/wwwroot/js/temperature_chart.js b/ManagementPage/ManagementPage/wwwroot/js/temperature_chart.js index d965776..5632736 100644 --- a/ManagementPage/ManagementPage/wwwroot/js/temperature_chart.js +++ b/ManagementPage/ManagementPage/wwwroot/js/temperature_chart.js @@ -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,