Skip to content

Commit 180fecf

Browse files
committed
update cliponaxis description
1 parent e10bfcd commit 180fecf

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

draftlogs/7558_fix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Set `cliponaxis: false` by default for bar traces with `text` and `textposition: 'outside'`, to prevent text clipping [#7558](https://github.com/plotly/plotly.js/pull/7558)

src/traces/scatter/attributes.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,9 @@ module.exports = {
362362
'Determines whether or not markers and text nodes',
363363
'are clipped about the subplot axes.',
364364
'To show markers and text nodes above axis lines and tick labels,',
365-
'make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*.'
365+
'make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*.',
366+
'Defaults to *true*, except for bar traces with `textposition` set to *outside*',
367+
'in which case the default is *false*.'
366368
].join(' ')
367369
},
368370

test/plot-schema.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58647,7 +58647,7 @@
5864758647
"valType": "string"
5864858648
},
5864958649
"cliponaxis": {
58650-
"description": "Determines whether or not markers and text nodes are clipped about the subplot axes. To show markers and text nodes above axis lines and tick labels, make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*.",
58650+
"description": "Determines whether or not markers and text nodes are clipped about the subplot axes. To show markers and text nodes above axis lines and tick labels, make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*. Defaults to *true*, except for bar traces with `textposition` set to *outside* in which case the default is *false*.",
5865158651
"dflt": true,
5865258652
"editType": "plot",
5865358653
"valType": "boolean"
@@ -74276,7 +74276,7 @@
7427674276
"animatable": false,
7427774277
"attributes": {
7427874278
"cliponaxis": {
74279-
"description": "Determines whether or not markers and text nodes are clipped about the subplot axes. To show markers and text nodes above axis lines and tick labels, make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*.",
74279+
"description": "Determines whether or not markers and text nodes are clipped about the subplot axes. To show markers and text nodes above axis lines and tick labels, make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*. Defaults to *true*, except for bar traces with `textposition` set to *outside* in which case the default is *false*.",
7428074280
"dflt": false,
7428174281
"editType": "plot",
7428274282
"valType": "boolean"
@@ -78753,7 +78753,7 @@
7875378753
"animatable": false,
7875478754
"attributes": {
7875578755
"cliponaxis": {
78756-
"description": "Determines whether or not markers and text nodes are clipped about the subplot axes. To show markers and text nodes above axis lines and tick labels, make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*.",
78756+
"description": "Determines whether or not markers and text nodes are clipped about the subplot axes. To show markers and text nodes above axis lines and tick labels, make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*. Defaults to *true*, except for bar traces with `textposition` set to *outside* in which case the default is *false*.",
7875778757
"dflt": false,
7875878758
"editType": "plot",
7875978759
"valType": "boolean"
@@ -81062,7 +81062,7 @@
8106281062
"valType": "data_array"
8106381063
},
8106481064
"cliponaxis": {
81065-
"description": "Determines whether or not markers and text nodes are clipped about the subplot axes. To show markers and text nodes above axis lines and tick labels, make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*.",
81065+
"description": "Determines whether or not markers and text nodes are clipped about the subplot axes. To show markers and text nodes above axis lines and tick labels, make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*. Defaults to *true*, except for bar traces with `textposition` set to *outside* in which case the default is *false*.",
8106681066
"dflt": true,
8106781067
"editType": "plot",
8106881068
"valType": "boolean"

0 commit comments

Comments
 (0)