Skip to content

Commit 23a035f

Browse files
committed
interactive hide gridlines
1 parent 49c978f commit 23a035f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/plots/cartesian/axes.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2867,6 +2867,11 @@ axes.drawGrid = function(gd, ax, opts) {
28672867
.style('stroke-width', ax._gw + 'px')
28682868
.style({ opacity: 1 }); // ensure visible
28692869

2870+
if(((ax._anchorAxis || {}).ticklabelposition || '').indexOf('inside') !== -1) {
2871+
if(ax._hideCounterAxisInsideTickLabels) {
2872+
ax._hideCounterAxisInsideTickLabels();
2873+
}
2874+
}
28702875

28712876
if(typeof opts.path === 'function') grid.attr('d', opts.path);
28722877
};

0 commit comments

Comments
 (0)