Skip to content

Commit feb4388

Browse files
committed
correctly declare boxpoints & violin points attribute dflt
... and mention how the smart logic work in the attribute description.
1 parent 73d845c commit feb4388

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Diff for: src/traces/box/attributes.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ module.exports = {
9696
boxpoints: {
9797
valType: 'enumerated',
9898
values: ['all', 'outliers', 'suspectedoutliers', false],
99-
dflt: 'outliers',
10099
role: 'style',
101100
editType: 'calc',
102101
description: [
@@ -106,7 +105,10 @@ module.exports = {
106105
'points either less than 4*Q1-3*Q3 or greater than 4*Q3-3*Q1',
107106
'are highlighted (see `outliercolor`)',
108107
'If *all*, all sample points are shown',
109-
'If *false*, only the box(es) are shown with no sample points'
108+
'If *false*, only the box(es) are shown with no sample points',
109+
'Defaults to *suspectedoutliers* when `marker.outliercolor` or',
110+
'`marker.line.outliercolor` is set,',
111+
'otherwise defaults to *outliers*.'
110112
].join(' ')
111113
},
112114
jitter: {

Diff for: src/traces/violin/attributes.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ module.exports = {
128128
'points either less than 4*Q1-3*Q3 or greater than 4*Q3-3*Q1',
129129
'are highlighted (see `outliercolor`)',
130130
'If *all*, all sample points are shown',
131-
'If *false*, only the violins are shown with no sample points'
131+
'If *false*, only the violins are shown with no sample points',
132+
'Defaults to *suspectedoutliers* when `marker.outliercolor` or',
133+
'`marker.line.outliercolor` is set,',
134+
'otherwise defaults to *outliers*.'
132135
].join(' ')
133136
}),
134137
jitter: extendFlat({}, boxAttrs.jitter, {

0 commit comments

Comments
 (0)