Ploty.js in Shadow DOM hover flicker
See original GitHub issueWhen Plotly.js is rendered inside of a ShadowDOM, the hover elements rapidly draw, clear, and redraw causing a flickering effect on mousemove
events under specific conditions.
And a GIF
For comparision, here is the same example as above using the Light DOM: Demonstration in codepen
And a GIF
When it comes to support for Plotly.js in Shadow DOM, there are other issues in addition to this one but, as demonstrated in the first code pen, there are workable fixes I can make as a user in most cases (i.e. the styling inside of the template…) but this particular issue is not so easily worked around as a user.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:13 (4 by maintainers)
Top Results From Across the Web
Plotly.js in ShadowDOM
Hack to correctly style plotly inside of Shadow DOM. -->. 9. <style>. 10 .js-plotly-plot ... .js-plotly-plot .plotly a:hover {. 26. text-decoration:none;.
Read more >Plotly flickers - plotly.js
When I click on “EDIT CHART”, that version of the graphic is smoothly interactive. What am I missing?
Read more >Adding CSS & JS and Overriding the Page-Load Template
Learn how to add custom CSS and JS to your app as well as how to customize the HTML title, meta tags, and...
Read more >Encapsulating D3.js Charts as Python Dash Components
Tutorials and resources on encapsulating D3.js graphs in Dash-friendly React components. Includes two sample components: a D3.js network graph and a D3.js ......
Read more >Indicator | Dash for Python Documentation
style (dict; optional): Style to apply to the root component element. Dash Python > Dash DAQ > Indicator.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I would say it is exactly the same issue. I checked out your pull request and can try if it fixes the problem for me. When I have tested your changes I’ll report my findings.
@dbluhm Yes. I am trying to use plotly within a Web Component. Outside ShadowDOM elements it works correctly.