Skip to content

WegGL Plots Fail to Render in Certain Circumstances #7312

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
samhinshaw opened this issue Dec 13, 2024 · 0 comments · Fixed by #7313
Closed

WegGL Plots Fail to Render in Certain Circumstances #7312

samhinshaw opened this issue Dec 13, 2024 · 0 comments · Fixed by #7313
Assignees
Labels
P1 needed for current cycle

Comments

@samhinshaw
Copy link
Contributor

In certain conditions (see below), plotly.js fails to render webgl plots because the canvas height is 0.

Conditions to Reproduce

  • the plot must be configured to use webgl (e.g. "scatter3d" trace type)
  • there must NOT be a height specified in the plot's config
  • virtual-webgl must be loaded on the page before plotly.js
  • the graph div must be wrapped in a parent which:
    • has a height set in px (e.g. height: 400px;)
    • is not set to display: inline;
  • the graph div must have set a height set in any units (e.g. height: 100%;, height: 400px;)
  • the graph configuration must have responsive set (responsive: true)

Additional Information

@archmoj archmoj self-assigned this Dec 14, 2024
@archmoj archmoj added the P1 needed for current cycle label Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 needed for current cycle
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants