Skip to content

Commit 0aacf62

Browse files
committed
set arrayOk:false for textposition & textfont.family
... so that we the list correct behavior, before implementing them as features.
1 parent 41d870b commit 0aacf62

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/traces/scatter3d/attributes.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,12 @@ var attrs = module.exports = overrideAll({
155155
colorAttributes('marker')
156156
),
157157

158-
textposition: extendFlat({}, scatterAttrs.textposition, {dflt: 'top center'}),
159-
textfont: scatterAttrs.textfont,
158+
textposition: extendFlat({}, scatterAttrs.textposition, {dflt: 'top center', arrayOk: false}),
159+
textfont: {
160+
color: scatterAttrs.textfont.color,
161+
size: scatterAttrs.textfont.size,
162+
family: extendFlat({}, scatterAttrs.textfont.family, {arrayOk: false})
163+
},
160164

161165
hoverinfo: extendFlat({}, baseAttrs.hoverinfo)
162166
}, 'calc', 'nested');

0 commit comments

Comments
 (0)