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

Fixed wrong autosize at small size. Cartesian bar chart #5435

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michelezanda
Copy link

@michelezanda michelezanda commented Jan 22, 2021

This PR is meant to fix a chart render that in some scenario failed to span fully over the available area, and "too many auto-margin redraws" showed on console log.

The autosize logic is surely complex, so here I am mainly suggesting to set pad to 0 (rather than 12). And then apply two minor changes to restore some padding at the end of the computations.
As a side effect, overall max iterations can be reduced, and the warning "too many auto-margin redraws" is no more reported in console log.

Console log showed warnings of too many auto-margin redraws
@nicolaskruchten
Copy link
Member

@nicolaskruchten nicolaskruchten commented Mar 10, 2021

Thanks for this PR! A small update on timing: our team is working hard on releasing v2.0 of Plotly.js, which we anticipate will happen in early April. This PR would be a good candidate to land in the library in v2.1 or later, so with apologies for the delay, we will likely not be able to give much feedback on this PR for the next few weeks :)

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

Successfully merging this pull request may close these issues.

None yet

2 participants