Skip to content

Commit 4e794d0

Browse files
committed
bugfix
1 parent 71e4896 commit 4e794d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/traces/bar/defaults.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ function crossTraceDefaults(fullData, fullLayout) {
7474
// `marker.cornerradius` needs to be coerced here rather than in handleStyleDefaults()
7575
// because it needs to happen after `layout.barcornerradius` has been coerced
7676
var r = coerce('marker.cornerradius', fullLayout.barcornerradius);
77-
traceOut.marker.cornerradius = validateCornerradius(r);
77+
if(traceOut.marker) {
78+
traceOut.marker.cornerradius = validateCornerradius(r);
79+
}
7880

7981
if(fullLayout.barmode === 'group') {
8082
handleGroupingDefaults(traceIn, traceOut, fullLayout, coerce);

0 commit comments

Comments
 (0)