-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
tick labels missing after interacting with plot from angular-plotly #5318
Comments
I tried recreating this issue with a clean create-react-app, but am unable to do it with a simple example of a plain bar chart (plotly.js 1.57.1). The same version of plotly.js, do give me the same disappearing labels during resizes of the element in which the is rendered in a real app (with dozens of dependencies, data coming from api's etc. making it hard to recreate on codepen). I can confirm however that the issue appears exactly in 1.54.6 When downgrading my real app to 1.54.5, the labels do not disappear anymore. Pics for reference again: |
It could be. which is of this dev branch: https://github.com/plotly/plotly.js/compare/debug-5318 |
@bishonen please also test this bundle too: |
Sorry about a dumb question but how can I test this out in a react app? Can I replace poorly.js in the node modules just like that? |
@bishonen I think we managed to fix this in #5345; you may try https://97143-45646037-gh.circle-artifacts.com/0/dist/plotly.min.js if you'd like to test before the next Plotly.js release.
I was able to use a different build of plotly using the Plotly Via Window Module instructions in the angular-plotly.js repo. If you drop a build (e.g. the one I linked above) in your project you should be able to link to it within your Unfortunately, as I mention in the description of #5345, I wasn't able to do this in Stackblitz for some reason, with a custom build of plotly.js that I uploaded 😕 |
I confirm the problem is gone after upgrading to 1.58.3. Thanks for fixing this promptly. |
@archmoj I've had a bit of a play around with a core plotly codepen (https://codepen.io/dmbarry86/pen/BaLKBmR) and a react plotly codepen (https://codepen.io/dmbarry86/pen/VwKaZqa) but am unable to replicate in either sorry. My react codepen does autoresize with window resizing though. I think you were missing style (never have quite understood why this is required TBH).
The only place where I can replicate the issue is the angular-plotly example (https://stackblitz.com/edit/angular-ivy-r3w5lj) shared by @zyzhu. I see in some earlier comments it was mentioned this started in 1.54.5 but when I change versions in that stackblitz it actually seems to be 1.54.6 where the issue starts happening. Not sure if that helps with the debug.
Note that this seems to be a completely different issue to the one originally raised in this ticket which is fixed in 1.58.0 as far as I can tell.
Originally posted by @dmbarry86 in #4459 (comment)
The text was updated successfully, but these errors were encountered: