Skip to content

Commit 5280cca

Browse files
committed
plotly#581 adding full-blown color specification to the scatter3d line and using it in the conversion
1 parent 9ee53c9 commit 5280cca

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/traces/scatter3d/attributes.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,12 @@ module.exports = {
9797
z: makeProjectionAttr('z')
9898
},
9999
connectgaps: scatterAttrs.connectgaps,
100-
line: {
101-
color: scatterLineAttrs.color,
100+
line: extendFlat({}, {
102101
width: scatterLineAttrs.width,
103102
dash: scatterLineAttrs.dash
104103
},
104+
colorAttributes('line')
105+
),
105106
marker: extendFlat({}, { // Parity with scatter.js?
106107
symbol: {
107108
valType: 'enumerated',

src/traces/scatter3d/convert.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function convertPlotlyOptions(scene, data) {
204204
};
205205

206206
if('line' in data) {
207-
params.lineColor = str2RgbaArray(line.color);
207+
params.lineColor = formatColor(line, 1, len);
208208
params.lineWidth = line.width;
209209
params.lineDashes = line.dash;
210210
}

0 commit comments

Comments
 (0)