Skip to content

Fix annotations SVG errors on trace-less subplots #3534

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

Merged
merged 3 commits into from
Feb 12, 2019

Conversation

etpinard
Copy link
Contributor

fixes #3526 - which was slightly misreported, this bug has nothing to do with heatmaps. All cartesian autoranged subplots w/o a single visible:true trace were affected.

cc @plotly/plotly_js looking a for a quick review. I'll like to include this in tomorrow's v1.44.4. Thanks!

... which happens to be the first time it's called
    when annotations are present on autoranged axes on
    subplots w/o visible traces. This is important to avoid
    `transform:rotate(NaN)` errors as annotations require ax._offset
    to first-draw text to compute its bounds.
- this is an unreported bug, that the new strict-d3 logic
  uncovered.
@etpinard etpinard added bug something broken status: reviewable labels Feb 11, 2019
@archmoj archmoj self-requested a review February 12, 2019 00:08
@archmoj
Copy link
Contributor

archmoj commented Feb 12, 2019

Good fixes.
💃
Thanks @etpinard.

@etpinard etpinard merged commit ed7983c into master Feb 12, 2019
@etpinard etpinard deleted the annotations-on-trace-less-subplots branch February 12, 2019 14:27
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

Successfully merging this pull request may close these issues.

SVG errors for heatmap with all NaNs
2 participants