Skip to content

Commit 10acb04

Browse files
committed
add axis layers after subplots
1 parent 9bb0c53 commit 10acb04

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/plots/cartesian/index.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,10 +459,18 @@ function makeSubplotData(gd) {
459459

460460
// use info about axis layer and overlaying pattern
461461
// to clean what need to be cleaned up in exit selection
462-
var d = [id, xa.layer, ya.layer, xa.overlaying || '', ya.overlaying || ''];
462+
var d = [id];
463463
for(j = 0; j < plotinfo.overlays.length; j++) {
464464
d.push(plotinfo.overlays[j].id);
465465
}
466+
467+
d = d.concat([
468+
xa.layer,
469+
ya.layer,
470+
xa.overlaying || '',
471+
ya.overlaying || ''
472+
]);
473+
466474
subplotData[i] = d;
467475
}
468476
return subplotData;

0 commit comments

Comments
 (0)