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

Draw blank bars as empty paths + allow blank bars to draw outsidetext #3701

Merged
merged 1 commit into from
Apr 1, 2019

Conversation

etpinard
Copy link
Contributor

fixes #3115

cc @plotly/plotly_js

var barHeight = Math.abs(y1 - y0) - 2 * TEXTPAD;

if(!text || textPosition === 'none' ||
(calcBar.isBlank && (textPosition === 'auto' || textPosition === 'inside'))) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

My solution to the problem noticed in https://github.com/plotly/plotly.js/pull/3164/files#r228981528 (in a previous attempt at fixing this bug) which results in no failing mocks.

@archmoj
Copy link
Contributor

archmoj commented Apr 1, 2019

Nicely done.
💃

@etpinard etpinard merged commit 189ad5d into master Apr 1, 2019
@etpinard etpinard deleted the outsidetext-on-blank-bars branch April 1, 2019 13:40
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.

Text does not show up on bars with empty area
2 participants