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

Plotly.react problems when switching traces from 'linear' scatter -> 'category' scatterpolar #3255

Closed
etpinard opened this issue Nov 16, 2018 · 1 comment
Assignees
Labels
bug something broken

Comments

@etpinard
Copy link
Contributor

etpinard commented Nov 16, 2018

See https://codepen.io/etpinard/pen/vQJKLd from https://community.plot.ly/t/swapping-from-bubble-to-scatterpolar/15602/10

@etpinard etpinard added the bug something broken label Nov 16, 2018
@alexcjohnson
Copy link
Collaborator

Wow, that's crazy. I should ask what the heck this line (which is resulting in a whole attempted "re"plot without any associated calc) is doing in supplyDefaults:

// TODO may return a promise
plots.doAutoMargin(gd);

But I'm afraid I'd have to ask myself from 4 years ago 🙄
Hopefully we can just move this (and the ax.setScale loop below it) out of supplyDefaults and later in the process, and deal with any consequences in a more rational way!

Kind of amazed this is the first we've seen of this bug... oh well, no time like the present!

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

No branches or pull requests

2 participants