Skip to content

Commit 8a69dc6

Browse files
committed
fix: axis date type
1 parent 8eee048 commit 8a69dc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/buildAxis.linear.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ function buildTimeAxis<TDatum>(
124124

125125
// see https://stackoverflow.com/a/2831422
126126
if (Object.prototype.toString.call(options.min) === '[object Date]') {
127-
minValue = min([options.min, minValue as Date])
127+
minValue = min([options.min as Date, minValue as Date])
128128
shouldNice = false
129129
}
130130

131131
if (Object.prototype.toString.call(options.max) === '[object Date]') {
132-
maxValue = max([options.max, maxValue as Date])
132+
maxValue = max([options.max as Date, maxValue as Date])
133133
shouldNice = false
134134
}
135135

0 commit comments

Comments
 (0)