From a3152245b4373e787a578f16e475e80984beb9b8 Mon Sep 17 00:00:00 2001 From: Frank Sauerburger <frank@sauerburger.com> Date: Wed, 20 Jan 2021 19:03:32 +0100 Subject: [PATCH] Actually stack items of step stack --- uhepp-js/src/components/UheppHist.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uhepp-js/src/components/UheppHist.jsx b/uhepp-js/src/components/UheppHist.jsx index 73b6645..fc292e5 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} -- GitLab