From ed30c8de24f0c5a2dad670582ceaf5af40219400 Mon Sep 17 00:00:00 2001 From: Simon Maddocks Date: Wed, 6 Oct 2021 02:13:14 +0100 Subject: [PATCH] Fix chart precision --- .../ManagementPage/wwwroot/js/temperature_chart.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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,