Skip to content

Commit

Permalink
Make 'auto' to function as 'array' when [] present
Browse files Browse the repository at this point in the history
  • Loading branch information
ayjayt committed Jan 25, 2024
1 parent f1a4db8 commit ee17af2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plots/cartesian/axes.js
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,8 @@ function arrayTicks(ax, majorOnly) {
if((majorOnly !== undefined) && ((majorOnly && isMinor) || (majorOnly === false && !isMinor))) continue;
if(isMinor && !ax.minor) continue;
var targetAxis = (!isMinor ? ax : ax.minor);
var vals = ax.tickmode === 'array' ? targetAxis.tickvals : targetAxis._mappedTickvals;
// if auto w/ array in tickval, is implicit 'array'
var vals = ax.tickmode === 'array' || ax.tickmode === 'auto' ? targetAxis.tickvals : targetAxis._mappedTickvals;
var text = !isMinor ? ax.ticktext : [];
if(!vals) continue;

Expand Down

0 comments on commit ee17af2

Please sign in to comment.