diff --git a/ts/routes/graphs/percentageRange.ts b/ts/routes/graphs/percentageRange.ts index fa704f5b9..0f0cad7c8 100644 --- a/ts/routes/graphs/percentageRange.ts +++ b/ts/routes/graphs/percentageRange.ts @@ -50,8 +50,9 @@ export function getAdjustedScaleAndTicks( const minOffset = min - predomain[0]; const tickSize = ticks[1] - ticks[0]; - if (tickSize < 1) { - ticks = range(min, max); + const minBinSize = 1; + if (tickSize < minBinSize) { + ticks = range(min, max, minBinSize); } if (minOffset === 0 || (minOffset % tickSize !== 0 && tickSize % minOffset !== 0)) {