F1: whole-number axis range typed as a pair; explicit ranges win
This commit is contained in:
@@ -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] }
|
||||
: {}),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user