Skip to content

Commit fedbe67

Browse files
Update src/traces/pie/defaults.js
Co-authored-by: Mojtaba Samimi <[email protected]>
1 parent 1cce254 commit fedbe67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/pie/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function supplyDefaults(traceIn, traceOut, defaultColor, layout) {
6868
var markerColors = coerce('marker.colors');
6969
coercePattern(coerce, 'marker.pattern', markerColors);
7070
// push the marker colors (with s) to the foreground colors, to work around logic in the drawing pattern code on marker.color (without s, which is okay for a bar trace)
71-
if(!traceOut.marker.pattern.fgcolor && traceIn.marker !== undefined) traceOut.marker.pattern.fgcolor = traceIn.marker.colors;
71+
if(traceIn.marker && !traceOut.marker.pattern.fgcolor) traceOut.marker.pattern.fgcolor = traceIn.marker.colors;
7272
if(!traceOut.marker.pattern.bgcolor) traceOut.marker.pattern.bgcolor = layout.paper_bgcolor;
7373

7474
coerce('scalegroup');

0 commit comments

Comments
 (0)