Skip to content

Commit 68f94cb

Browse files
committed
do not show zeroline on log axes
1 parent 7c643cd commit 68f94cb

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/plots/gl3d/layout/convert.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ proto.merge = function(sceneLayout) {
9191
if ('gridcolor' in axes) opts.gridColor[i] = str2RgbaArray(axes.gridcolor);
9292
if ('gridwidth' in axes) opts.gridWidth[i] = axes.gridwidth;
9393

94-
if ('zeroline' in axes) opts.zeroEnable[i] = axes.zeroline;
94+
// Remove zeroline if axis type is log //
95+
if (axes.type === 'log') opts.zeroEnable[i] = false;
96+
else if ('zeroline' in axes) opts.zeroEnable[i] = axes.zeroline;
9597
if ('zerolinecolor' in axes) opts.zeroLineColor[i] = str2RgbaArray(axes.zerolinecolor);
9698
if ('zerolinewidth' in axes) opts.zeroLineWidth[i] = axes.zerolinewidth;
9799

-75 Bytes
Loading
-173 Bytes
Loading

0 commit comments

Comments
 (0)