File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -117,12 +117,12 @@ function buildTimeAxis<TDatum>(
117
117
let shouldNice = true
118
118
119
119
if ( typeof options . min === 'number' ) {
120
- minValue = max ( [ options . min , minValue as Date ] )
120
+ minValue = min ( [ options . min , minValue as Date ] )
121
121
shouldNice = false
122
122
}
123
123
124
124
if ( typeof options . max === 'number' ) {
125
- maxValue = min ( [ options . max , maxValue as Date ] )
125
+ maxValue = max ( [ options . max , maxValue as Date ] )
126
126
shouldNice = false
127
127
}
128
128
@@ -240,12 +240,12 @@ function buildLinearAxis<TDatum>(
240
240
let shouldNice = true
241
241
242
242
if ( typeof options . min === 'number' ) {
243
- minValue = max ( [ options . min , minValue as number ] )
243
+ minValue = min ( [ options . min , minValue as number ] )
244
244
shouldNice = false
245
245
}
246
246
247
247
if ( typeof options . max === 'number' ) {
248
- maxValue = min ( [ options . max , maxValue as number ] )
248
+ maxValue = max ( [ options . max , maxValue as number ] )
249
249
shouldNice = false
250
250
}
251
251
You can’t perform that action at this time.
0 commit comments