Skip to content

Commit d425373

Browse files
committed
do not show zeroline when it falls inside an axis break
1 parent fe80cad commit d425373

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plots/cartesian/axes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2849,6 +2849,7 @@ axes.shouldShowZeroLine = function(gd, ax, counterAxis) {
28492849
(rng[0] * rng[1] <= 0) &&
28502850
ax.zeroline &&
28512851
(ax.type === 'linear' || ax.type === '-') &&
2852+
!(ax.breaks && ax.maskBreaks(0) === BADNUM) &&
28522853
(
28532854
clipEnds(ax, 0) ||
28542855
!anyCounterAxLineAtZero(gd, ax, counterAxis, rng) ||

0 commit comments

Comments
 (0)