From 72960606e74905fbd97543500cbfc867541f8f39 Mon Sep 17 00:00:00 2001 From: Shan He Date: Fri, 5 Feb 2021 11:40:22 +0800 Subject: [PATCH] [Bug] fix histogram in range Signed-off-by: Shan He --- src/components/common/histogram-plot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/common/histogram-plot.js b/src/components/common/histogram-plot.js index dd1136e7fd..b6eb37019f 100644 --- a/src/components/common/histogram-plot.js +++ b/src/components/common/histogram-plot.js @@ -73,7 +73,7 @@ function HistogramPlotFactory() { {histogram.map(bar => { - const inRange = bar.x1 <= value[1] + 1 && bar.x0 >= value[0]; + const inRange = bar.x1 <= value[1] && bar.x0 >= value[0]; const wRatio = inRange ? histogramStyle.highlightW : histogramStyle.unHighlightedW; return (