Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement cliponaxis: false for bar text #2378

Merged
merged 5 commits into from
Feb 19, 2018
Merged

Conversation

etpinard
Copy link
Contributor

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 馃槈 )

... now that the barlayer also supports `cliponaxis: false`
    we let bar/plot.js handle clipping per trace.
if(!subplot._hasClipOnAxisFalse) return;

selector = selector || '.point,textpoint';
Copy link
Collaborator

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 .)

Copy link
Collaborator

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?

Copy link
Contributor Author

@etpinard etpinard Feb 16, 2018

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed and 馃敀 in -> b9513a2

@alexcjohnson
Copy link
Collaborator

Very nice, relieves one of the big pain points until we really do text in autorange. 馃拑

@chriddyp
Copy link
Member

YESSSSSSSSSS! Love Friday Afternoon Features 馃

@ghost
Copy link

ghost commented Feb 18, 2018

Oo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants