Skip to content

Commit 64344a2

Browse files
committed
581 scatter3d line color attribute specified
1 parent 4549f4f commit 64344a2

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/traces/scatter3d/attributes.js

+13-3
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,21 @@ module.exports = {
9797
z: makeProjectionAttr('z')
9898
},
9999
connectgaps: scatterAttrs.connectgaps,
100-
line: {
101-
color: scatterLineAttrs.color,
100+
line: extendFlat({}, {
102101
width: scatterLineAttrs.width,
103-
dash: scatterLineAttrs.dash
102+
dash: scatterLineAttrs.dash,
103+
showscale: {
104+
valType: 'boolean',
105+
role: 'info',
106+
dflt: false,
107+
description: [
108+
'Has an effect only if `line.color` is set to a numerical array.',
109+
'Determines whether or not a colorbar is displayed.'
110+
].join(' ')
111+
}
104112
},
113+
colorAttributes('line')
114+
),
105115
marker: extendFlat({}, { // Parity with scatter.js?
106116
symbol: {
107117
valType: 'enumerated',

0 commit comments

Comments
 (0)