Skip to content

Commit a9493d4

Browse files
committed
Fix index of layer names for negative zindex
1 parent 1208283 commit a9493d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/plots/cartesian/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ function plotOne(gd, plotinfo, cdSubplot, transitionOpts, makeOnCompleteCallback
221221
var categories = Registry.modules[name].categories;
222222

223223
if(categories.svg) {
224-
var className = (_module.layerName || name + 'layer') + (zindex ? Number(z) + 1 : '');
224+
var className = (_module.layerName || name + 'layer') + (z ? Number(z) + 1 : '');
225225
var plotMethod = _module.plot;
226226

227227
// plot all visible traces of this type on this subplot at once

0 commit comments

Comments
 (0)