@easyv/charts
Advanced tools
Comparing version 1.0.19 to 1.0.20
@@ -55,2 +55,3 @@ "use strict"; | ||
mode = item.mode, | ||
carousel = item.carousel, | ||
config = item.config; | ||
@@ -70,4 +71,8 @@ var direction = orientation === 'top' || orientation === 'bottom' ? 'horizontal' : orientation === 'left' || orientation === 'right' ? 'vertical' : ''; | ||
if (auto === false) { | ||
if (type !== 'ordinal') { | ||
if (type === 'ordinal') { | ||
if (carousel === false) { | ||
_ticks = (0, _utils2.getTicksOfAxis)(_ticks, +tickCount); | ||
} | ||
} else { | ||
if (auto === false) { | ||
switch (mode) { | ||
@@ -82,4 +87,2 @@ case 'count': | ||
} | ||
} else { | ||
_ticks = (0, _utils2.getTicksOfAxis)(_ticks, +tickCount); | ||
} | ||
@@ -86,0 +89,0 @@ } |
{ | ||
"name": "@easyv/charts", | ||
"version": "1.0.19", | ||
"version": "1.0.20", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -34,2 +34,3 @@ import { useMemo } from 'react'; | ||
mode, | ||
carousel, | ||
config, | ||
@@ -73,4 +74,8 @@ } = item; | ||
if (auto === false) { | ||
if (type !== 'ordinal') { | ||
if (type === 'ordinal') { | ||
if (carousel === false) { | ||
_ticks = getTicksOfAxis(_ticks, +tickCount); | ||
} | ||
} else { | ||
if (auto === false) { | ||
switch (mode) { | ||
@@ -92,4 +97,2 @@ case 'count': | ||
} | ||
} else { | ||
_ticks = getTicksOfAxis(_ticks, +tickCount); | ||
} | ||
@@ -117,3 +120,3 @@ } | ||
} | ||
tmp.set(axisType, { | ||
@@ -120,0 +123,0 @@ ...item, |
217712
6545