Skip to content

SVG NaN errors when shapes and bgcolor are specified #5235

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

Closed
zbjornson opened this issue Oct 27, 2020 · 6 comments · Fixed by #5236
Closed

SVG NaN errors when shapes and bgcolor are specified #5235

zbjornson opened this issue Oct 27, 2020 · 6 comments · Fixed by #5236
Labels
bug something broken regression this used to work

Comments

@zbjornson
Copy link

https://jsfiddle.net/hnqe98uv/

This example generates a handful of errors like Unexpected value NaN parsing x attribute because some of the background attributes (_offset, _length) are not set. This only occurs with paper_bgcolor.

@archmoj archmoj added the bug something broken label Oct 27, 2020
@archmoj
Copy link
Contributor

archmoj commented Oct 27, 2020

Strangely enough, if one hides heatmap colorbar using showscale: false, the error goes away!

@archmoj
Copy link
Contributor

archmoj commented Oct 27, 2020

Here is a minimal codepen.

@archmoj
Copy link
Contributor

archmoj commented Oct 27, 2020

This is in fact a regression since v1.44.3.

@archmoj archmoj added the regression this used to work label Oct 27, 2020
@archmoj
Copy link
Contributor

archmoj commented Oct 27, 2020

Side effect of #3510.

@zbjornson
Copy link
Author

Thank you for the fast fix!

@archmoj
Copy link
Contributor

archmoj commented Oct 28, 2020

Thank you for the fast fix!

Thanks for your report.
Please note that the official fix won't be available until next patch/minor release.

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
2 participants