-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement cliponaxis: false
for bar text
#2378
Conversation
... now that the barlayer also supports `cliponaxis: false` we let bar/plot.js handle clipping per trace.
src/components/drawing/index.js
Outdated
if(!subplot._hasClipOnAxisFalse) return; | ||
|
||
selector = selector || '.point,textpoint'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'.point,.textpoint'
(you lost a .
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we not have an image test that catches this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. That thing only gets called during pan and scroll zoom. Nice catch. I'll add a pan test to 🔒 this down.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed and 🔒 in -> b9513a2
Very nice, relieves one of the big pain points until we really do text in autorange. 💃 |
YESSSSSSSSSS! Love Friday Afternoon Features 🥇 |
Oo |
Friday Afternoon Feature. This one was talked about in #2000 and #2001 as one way to solve problems with undesired clipped text nodes in bar traces. Note that this PR does not attempt to make on-graph text contribue to the autorange computations.
cc @alexcjohnson @cldougl (and I think this should make @chriddyp happy too 😉 )