Skip to content

Commit

Permalink
[Bug] fix histogram in range (#1531)
Browse files Browse the repository at this point in the history
Signed-off-by: Shan He <heshan0131@gmail.com>
  • Loading branch information
heshan0131 committed Jul 8, 2021
1 parent 305edfc commit 1ed0fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/common/histogram-plot.js
Expand Up @@ -73,7 +73,7 @@ function HistogramPlotFactory() {
<HistogramWrapper width={width} height={height} style={{marginTop: `${margin.top}px`}}>
<g className="histogram-bars">
{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 (
<rect
Expand Down

0 comments on commit 1ed0fd6

Please sign in to comment.