Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8a1472f

Browse files
committed
no need to call autoTickRound for minor ticks
1 parent 0affe38 commit 8a1472f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/cartesian/axes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ axes.prepTicks = function(ax, opts, isMinor) {
592592
if(ax.type === 'date' && ax.dtick < 0.1) ax.dtick = 0.1;
593593

594594
// now figure out rounding of tick values
595-
autoTickRound(ax);
595+
if(!isMinor) autoTickRound(ax);
596596
};
597597

598598
function nMonths(dtick) {

0 commit comments

Comments
 (0)