From 74974244fc7ef06b8a4d70c38b804ceb48410065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Sat, 22 Oct 2022 22:18:39 +0200 Subject: [PATCH] Same for the long term graph MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- scripts/pi-hole/js/db_graph.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/pi-hole/js/db_graph.js b/scripts/pi-hole/js/db_graph.js index 4ca0fb6b..4223e738 100644 --- a/scripts/pi-hole/js/db_graph.js +++ b/scripts/pi-hole/js/db_graph.js @@ -236,12 +236,15 @@ $(function () { }, options: { responsive: true, + interaction: { + mode: 'nearest', + axis: 'x', + }, plugins: { tooltip: { enabled: true, yAlign: "bottom", intersect: false, - mode: "x", itemSort: function (a, b) { return b.datasetIndex - a.datasetIndex; },