Skip to content

Commit ee17af2

Browse files
committed
Make 'auto' to function as 'array' when [] present
1 parent f1a4db8 commit ee17af2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plots/cartesian/axes.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,8 @@ function arrayTicks(ax, majorOnly) {
13241324
if((majorOnly !== undefined) && ((majorOnly && isMinor) || (majorOnly === false && !isMinor))) continue;
13251325
if(isMinor && !ax.minor) continue;
13261326
var targetAxis = (!isMinor ? ax : ax.minor);
1327-
var vals = ax.tickmode === 'array' ? targetAxis.tickvals : targetAxis._mappedTickvals;
1327+
// if auto w/ array in tickval, is implicit 'array'
1328+
var vals = ax.tickmode === 'array' || ax.tickmode === 'auto' ? targetAxis.tickvals : targetAxis._mappedTickvals;
13281329
var text = !isMinor ? ax.ticktext : [];
13291330
if(!vals) continue;
13301331

0 commit comments

Comments
 (0)