Skip to content

Commit

Permalink
Merge pull request #3687 from plotly/fix-3653
Browse files Browse the repository at this point in the history
update description for `violin.scalegroup`
  • Loading branch information
antoinerg committed Mar 28, 2019
2 parents 7b2946a + 23a1b17 commit e0e7a1a
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/traces/violin/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,17 @@ module.exports = {
x: boxAttrs.x,
x0: boxAttrs.x0,
y0: boxAttrs.y0,
name: boxAttrs.name,
name: extendFlat({}, boxAttrs.name, {
description: [
'Sets the trace name.',
'The trace name appear as the legend item and on hover.',
'For violin traces, the name will also be used for the position',
'coordinate, if `x` and `x0` (`y` and `y0` if horizontal) are',
'missing and the position axis is categorical.',
'Note that the trace name is also used as a default value',
'for attribute `scalegroup` (please see its description for details).'
].join(' ')
}),
orientation: extendFlat({}, boxAttrs.orientation, {
description: [
'Sets the orientation of the violin(s).',
Expand Down Expand Up @@ -44,7 +54,9 @@ module.exports = {
description: [
'If there are multiple violins that should be sized according to',
'to some metric (see `scalemode`), link them by providing a non-empty group id here',
'shared by every trace in the same group.'
'shared by every trace in the same group.',
'If a violin\'s `width` is undefined, `scalegroup` will default to the trace\'s name.',
'In this case, violins with the same names will be linked together'
].join(' ')
},
scalemode: {
Expand Down

0 comments on commit e0e7a1a

Please sign in to comment.