Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9b4711b

Browse files
committedMar 13, 2020
rename new attribute to unselected.line.color
1 parent b21b74c commit 9b4711b

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed
 

‎src/traces/parcoords/attributes.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -141,18 +141,20 @@ module.exports = {
141141
description: 'The dimensions (variables) of the parallel coordinates chart. 2..60 dimensions are supported.'
142142
}),
143143

144-
bgline: {
145-
color: {
146-
valType: 'color',
147-
dflt: '#777',
148-
role: 'style',
149-
editType: 'plot',
150-
description: [
151-
'Sets the color of lines in the background',
152-
'i.e. unselected lines.'
153-
].join(' ')
144+
unselected: {
145+
line: {
146+
color: {
147+
valType: 'color',
148+
dflt: '#777',
149+
role: 'style',
150+
editType: 'plot',
151+
description: [
152+
'Sets the color of lines in the background',
153+
'i.e. unselected lines.'
154+
].join(' ')
155+
},
156+
editType: 'calc'
154157
},
155-
156158
editType: 'calc'
157159
},
158160

‎src/traces/parcoords/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,5 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
115115

116116
coerce('labelangle');
117117
coerce('labelside');
118-
coerce('bgline.color');
118+
coerce('unselected.line.color');
119119
};

‎src/traces/parcoords/parcoords.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function model(layout, d, i) {
154154
var trace = cd0.trace;
155155
var lineColor = helpers.convertTypedArray(cd0.lineColor);
156156
var line = trace.line;
157-
var deselectedLines = {color: rgba(trace.bgline.color)};
157+
var deselectedLines = {color: rgba(trace.unselected.line.color)};
158158
var cOpts = Colorscale.extractOpts(line);
159159
var cscale = cOpts.reversescale ? Colorscale.flipScale(cd0.cscale) : cd0.cscale;
160160
var domain = trace.domain;

0 commit comments

Comments
 (0)
Please sign in to comment.