We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8a6e62 commit a4cb02bCopy full SHA for a4cb02b
src/plots/cartesian/axes.js
@@ -708,12 +708,17 @@ axes.calcTicks = function calcTicks(ax, opts) {
708
}
709
710
711
- if(prevDtick !== ax.dtick) {
+ if(prevDtick !== ax.dtick && ax._tick0Init !== ax.tick0) {
712
+ var prevTick0 = ax.tick0;
713
+
714
// move tick0 back
715
ax.tick0 = axes.tickIncrement(ax.tick0, prevDtick, !axrev, ax.calendar);
716
717
// redo first tick
718
ax._tmin = axes.tickFirst(ax, opts);
719
720
+ // maintain tick0 value
721
+ ax.tick0 = prevTick0;
722
723
724
0 commit comments