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));