new demo mode & tenure
This commit is contained in:
parent
7656f24544
commit
4a0f00f2a4
64 changed files with 2875 additions and 338 deletions
|
|
@ -52,7 +52,11 @@ export function compactHistogramLabel(
|
|||
if (index === 0) {
|
||||
if (!integerLabels) return `<${formatLabel(p1)}`;
|
||||
const firstBoundary = Math.ceil(p1);
|
||||
return firstBoundary <= 1 ? '0' : `<${firstBoundary.toLocaleString()}`;
|
||||
// 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.
|
||||
if (firstBoundary <= 0) return '';
|
||||
return firstBoundary === 1 ? '0' : `<${firstBoundary.toLocaleString()}`;
|
||||
}
|
||||
if (index === barCount - 1) {
|
||||
if (!integerLabels) return `${formatLabel(p99)}+`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue