Skip to content

Commit e3ac9d7

Browse files
committed
coerce 'name' in visible: false traces
1 parent e8b7afa commit e3ac9d7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/plots/plots.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,7 @@ plots.supplyTraceDefaults = function(traceIn, traceIndex, layout) {
707707

708708
coerce('type');
709709
coerce('uid');
710+
coerce('name', 'trace ' + traceIndex);
710711

711712
// coerce subplot attributes of all registered subplot types
712713
var subplotTypes = Object.keys(subplotsRegistry);
@@ -733,8 +734,6 @@ plots.supplyTraceDefaults = function(traceIn, traceIndex, layout) {
733734

734735
if(_module) _module.supplyDefaults(traceIn, traceOut, defaultColor, layout);
735736

736-
coerce('name', 'trace ' + traceIndex);
737-
738737
if(!plots.traceIs(traceOut, 'noOpacity')) coerce('opacity');
739738

740739
coerceSubplotAttr('cartesian', 'xaxis');

0 commit comments

Comments
 (0)