From 8e8d61a0e028a33dc8528c24b9f6f40937f1af18 Mon Sep 17 00:00:00 2001 From: leiweibau <105860611+leiweibau@users.noreply.github.com> Date: Sat, 20 Jan 2024 15:00:47 +0100 Subject: [PATCH] Update jokob-sk graph_online_history.js Depending on how many devices are contained in the list, the y-axis may contain floating point numbers. This does not make sense. --- front/js/graph_online_history.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/front/js/graph_online_history.js b/front/js/graph_online_history.js index 268acdc4..31d3d137 100755 --- a/front/js/graph_online_history.js +++ b/front/js/graph_online_history.js @@ -2,6 +2,7 @@ function pia_draw_graph_online_history(pia_js_graph_online_history_time, pia_js_ var xValues = pia_js_graph_online_history_time; new Chart("OnlineChart", { type: "bar", + scaleIntegersOnly: true, data: { labels: xValues, datasets: [{ @@ -60,4 +61,4 @@ function pia_draw_graph_online_history(pia_js_graph_online_history_time, pia_js_ } } }); -} \ No newline at end of file +}