Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[Bug] fix histogram in range (#1531)

Shan He1ed0fd6ded45
diff --git a/src/components/common/histogram-plot.js b/src/components/common/histogram-plot.js
index dd1136e7f..b6eb37019 100644
--- a/src/components/common/histogram-plot.js
+++ b/src/components/common/histogram-plot.js
@@ -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