diff --git a/src/utils/buildAxis.linear.ts b/src/utils/buildAxis.linear.ts index f8fd2948..44f5d8a9 100644 --- a/src/utils/buildAxis.linear.ts +++ b/src/utils/buildAxis.linear.ts @@ -117,12 +117,12 @@ function buildTimeAxis( let shouldNice = true if (typeof options.min === 'number') { - minValue = max([options.min, minValue as Date]) + minValue = min([options.min, minValue as Date]) shouldNice = false } if (typeof options.max === 'number') { - maxValue = min([options.max, maxValue as Date]) + maxValue = max([options.max, maxValue as Date]) shouldNice = false } @@ -240,12 +240,12 @@ function buildLinearAxis( let shouldNice = true if (typeof options.min === 'number') { - minValue = max([options.min, minValue as number]) + minValue = min([options.min, minValue as number]) shouldNice = false } if (typeof options.max === 'number') { - maxValue = min([options.max, maxValue as number]) + maxValue = max([options.max, maxValue as number]) shouldNice = false }