.
This commit is contained in:
parent
463bd4c647
commit
982e0cc89c
16 changed files with 466 additions and 51 deletions
|
|
@ -54,7 +54,7 @@ export function compactHistogramLabel(
|
|||
const firstBoundary = Math.ceil(p1);
|
||||
// This outlier bin holds values strictly below p1. When p1 <= 0 there are no
|
||||
// (non-negative) integers below it, so the value 0 lives in the first middle
|
||||
// bin instead — labelling this empty bin "0" too would show "0" twice.
|
||||
// bin instead. Labelling this empty bin "0" too would show "0" twice.
|
||||
if (firstBoundary <= 0) return '';
|
||||
return firstBoundary === 1 ? '0' : `<${firstBoundary.toLocaleString()}`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue