Skip to content

Commit

Permalink
fix: update negative bucket boundary
Browse files Browse the repository at this point in the history
Signed-off-by: Manik Rana <[email protected]>
  • Loading branch information
Maniktherana committed May 15, 2024
1 parent 50b1b10 commit d9a66f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/ui/react-app/src/pages/graph/HistogramChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const RenderHistogramBars: FC<RenderHistogramProps> = ({
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 + '%';

Expand Down

0 comments on commit d9a66f3

Please sign in to comment.