F1: whole-number axis range typed as a pair; explicit ranges win

This commit is contained in:
2026-12-01 13:51:14 -06:00
parent e14a85261c
commit 0fd5cc70ec
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -427,7 +427,7 @@ export function wholeNumberAxis(values: Iterable<number | null | undefined>) {
dtick: step * magnitude,
tickformat: '.0f',
...(Math.ceil(min) > Math.floor(max) && min <= max
? { range: [Math.floor(min), Math.ceil(max)] }
? { range: [Math.floor(min), Math.ceil(max)] as [number, number] }
: {}),
};
}