Skip to content

Commit 44fa269

Browse files
committed
inherit violin 'width' from box.width
1 parent fe3d7ed commit 44fa269

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/traces/violin/attributes.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,18 +136,13 @@ module.exports = {
136136
].join(' ')
137137
}),
138138

139-
width: {
140-
valType: 'number',
141-
min: 0,
142-
role: 'info',
143-
dflt: 0,
144-
editType: 'calc',
139+
width: extendFlat({}, boxAttrs.width, {
145140
description: [
146141
'Sets the width of the violin.',
147142
'If *0* (default value) the width is automatically selected based on the positions',
148143
'of other violin traces in the same subplot.',
149144
].join(' ')
150-
},
145+
}),
151146

152147
marker: boxAttrs.marker,
153148
text: boxAttrs.text,

0 commit comments

Comments
 (0)