Skip to content

Commit f5bcb71

Browse files
committed
do not coerce layout.colorscale if not specified
1 parent 6e61f3b commit f5bcb71

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/plots/plots.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,9 +1362,11 @@ plots.supplyLayoutGlobalDefaults = function(layoutIn, layoutOut, formatObj) {
13621362
coerce('hidesources');
13631363

13641364
coerce('colorway');
1365-
coerce('colorscale.sequential');
1366-
coerce('colorscale.sequentialminus');
1367-
coerce('colorscale.diverging');
1365+
if(layoutIn.colorscale) {
1366+
if(layoutIn.colorscale.sequential) coerce('colorscale.sequential');
1367+
if(layoutIn.colorscale.sequentialminus) coerce('colorscale.sequentialminus');
1368+
if(layoutIn.colorscale.diverging) coerce('colorscale.diverging');
1369+
}
13681370

13691371
coerce('datarevision');
13701372

0 commit comments

Comments
 (0)