Skip to content

Commit 7ec042a

Browse files
committed
bar trace: cleanup fullLayout if it doesn't have bars
1 parent 9187d53 commit 7ec042a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/traces/bar/layout_defaults.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ module.exports = function(layoutIn, layoutOut, fullData) {
4646
}
4747
}
4848

49-
if(!hasBars) return;
49+
if(!hasBars) {
50+
delete layoutOut.barmode;
51+
return;
52+
}
5053

5154
if(mode !== 'overlay') coerce('barnorm');
5255

0 commit comments

Comments
 (0)