From d9a66f3b4088c8347b9edf58a9d9fa44c4e12a93 Mon Sep 17 00:00:00 2001 From: Manik Rana Date: Wed, 15 May 2024 23:04:42 +0530 Subject: [PATCH] fix: update negative bucket boundary Signed-off-by: Manik Rana --- web/ui/react-app/src/pages/graph/HistogramChart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/ui/react-app/src/pages/graph/HistogramChart.tsx b/web/ui/react-app/src/pages/graph/HistogramChart.tsx index cf52aba4427..42c431ab275 100644 --- a/web/ui/react-app/src/pages/graph/HistogramChart.tsx +++ b/web/ui/react-app/src/pages/graph/HistogramChart.tsx @@ -191,7 +191,7 @@ const RenderHistogramBars: FC = ({ scale === 'linear' ? ((left - rangeMin) / (rangeMax - rangeMin)) * 100 + '%' : left < 0 - ? (-(Math.log(Math.abs(left)) - startNegative) / widthTotal) * 100 + '%' // negative buckets boundary + ? (-(Math.log(Math.abs(left)) + startNegative) / widthTotal) * 100 + '%' // negative buckets boundary : ((Math.log(left) - startPositive + bw + widthNegative) / widthTotal) * 100 + '%'; // positive buckets boundary const bucketHeight = scale === 'linear' ? (fds[bIdx] / fdMax) * 100 + '%' : (count / countMax) * 100 + '%';