Skip to content

Commit dd0940a

Browse files
committed
fix _forceTick0 error
1 parent 03b4a0c commit dd0940a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plots/cartesian/axes.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ axes.counterLetter = function(id) {
142142

143143
// incorporate a new minimum difference and first tick into
144144
// forced
145+
// note that _forceTick0 is linearized, so needs to be turned into
146+
// a range value for setting tick0
145147
axes.minDtick = function(ax, newDiff, newFirst, allow) {
146148
// doesn't make sense to do forced min dTick on log or category axes,
147149
// and the plot itself may decide to cancel (ie non-grouped bars)
@@ -619,7 +621,7 @@ axes.calcTicks = function calcTicks(ax) {
619621
// check for a forced minimum dtick
620622
if(ax._minDtick > 0 && ax.dtick < ax._minDtick * 2) {
621623
ax.dtick = ax._minDtick;
622-
ax.tick0 = ax._forceTick0;
624+
ax.tick0 = ax.l2r(ax._forceTick0);
623625
}
624626
}
625627

0 commit comments

Comments
 (0)