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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for displaying narrow bars in interactive mode #4568

Merged
merged 8 commits into from
Feb 12, 2020

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Feb 10, 2020

Fixes #4567 | Demo: before vs after
and fixes #4573 | before vs after

@plotly/plotly_js
cc: @brubbel

@archmoj archmoj added bug something broken status: reviewable regression this used to work labels Feb 10, 2020
@archmoj
Copy link
Contributor Author

archmoj commented Feb 11, 2020

@etpinard I am working on few more commits for this PR.

src/traces/bar/plot.js Outdated Show resolved Hide resolved
@archmoj
Copy link
Contributor Author

archmoj commented Feb 11, 2020

Please note that bug reported in #4573 is also fixed in this PR.

di.isBlank = isBlank;

// for empty bars, ensure start and end positions are equal when having transition
if(isBlank && withTransition) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

With revised logic, now there is no need for handling transitions differently.

@etpinard
Copy link
Contributor

Awesome work. Thanks very much for adding those transition tests!

I hope this is the last of our blank bar fixup. 💃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken regression this used to work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

inconsistent interactive bar display Regression of bar plot axis scaling between 1.51.1 and 1.51.2
2 participants