Skip to content

Commit 55a51f8

Browse files
committed
DRY up scattermapbox 'mode' attribute declaration
1 parent a7b76ee commit 55a51f8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/traces/scattermapbox/attributes.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,15 @@ module.exports = {
2727
// locations
2828
// locationmode
2929

30-
mode: {
31-
valType: 'flaglist',
32-
flags: ['lines', 'markers', 'text'],
30+
mode: extendFlat({}, scatterAttrs.mode, {
3331
dflt: 'markers',
34-
extras: ['none'],
35-
role: 'info',
3632
description: [
3733
'Determines the drawing mode for this scatter trace.',
3834
'If the provided `mode` includes *text* then the `text` elements',
3935
'appear at the coordinates. Otherwise, the `text` elements',
4036
'appear on hover.'
4137
].join(' ')
42-
},
38+
}),
4339

4440
text: extendFlat({}, scatterAttrs.text, {
4541
description: [

0 commit comments

Comments
 (0)