Histogram: Fix Tooltip placement issue (#110368)

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
This commit is contained in:
wassaf shahzad
2025-09-01 16:48:44 -05:00
committed by GitHub
co-authored by Leon Sorokin
parent fccf58add7
commit 88886d39d0
@@ -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));