diff --git a/src/utils/buildAxis.linear.ts b/src/utils/buildAxis.linear.ts index fa33789f..910f17a3 100644 --- a/src/utils/buildAxis.linear.ts +++ b/src/utils/buildAxis.linear.ts @@ -124,12 +124,12 @@ function buildTimeAxis( // see https://stackoverflow.com/a/2831422 if (Object.prototype.toString.call(options.min) === '[object Date]') { - minValue = min([options.min, minValue as Date]) + minValue = min([options.min as Date, minValue as Date]) shouldNice = false } if (Object.prototype.toString.call(options.max) === '[object Date]') { - maxValue = max([options.max, maxValue as Date]) + maxValue = max([options.max as Date, maxValue as Date]) shouldNice = false }