diff --git a/uhepp-js/src/components/UheppHist.jsx b/uhepp-js/src/components/UheppHist.jsx index 73b66457dbe0db3704e96b21d42c969c48b699f3..fc292e514167c9f79bc4c4b893c035c59947b4b1 100644 --- a/uhepp-js/src/components/UheppHist.jsx +++ b/uhepp-js/src/components/UheppHist.jsx @@ -367,7 +367,7 @@ const Histogram = ({ (uhepp.bins.density_width ? uhepp.bins.density_width / (edges[i + 1] - edges[i]) : 1) ) - const [new_x, new_y] = histogramify(edges, y_values) + const [new_x, new_y] = histogramify(edges, y_values.map((v, i) => v + bottom[i])) objects.push(<Step x={new_x} y={new_y}