From 88886d39d0c9d2eacb00dec8c59461e2656a6009 Mon Sep 17 00:00:00 2001 From: wassaf shahzad Date: Mon, 1 Sep 2025 23:48:44 +0200 Subject: [PATCH] Histogram: Fix Tooltip placement issue (#110368) Co-authored-by: Leon Sorokin --- public/app/plugins/panel/histogram/Histogram.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/app/plugins/panel/histogram/Histogram.tsx b/public/app/plugins/panel/histogram/Histogram.tsx index 3225018263a..65a52d53a1e 100644 --- a/public/app/plugins/panel/histogram/Histogram.tsx +++ b/public/app/plugins/panel/histogram/Histogram.tsx @@ -204,6 +204,12 @@ const prepConfig = (frame: DataFrame, theme: GrafanaTheme2) => { y: false, setScale: true, }, + dataIdx: (u, _, closestIdx, xValue) => + isOrdinalX ? Math.floor(xValue) : xValue < u.data[0][closestIdx] ? closestIdx - 1 : closestIdx, + focus: { + prox: 1e6, + bias: 1, + }, }); let stackingGroups = getStackingGroups(xMinOnlyFrame(frame));