In this case when users zoom in dcc.Graphs fails to change its size causing it to be off the screen. Zooming out works fine bizarrely. If the page is reloaded already zoomed in it works fine.
It is as if dcc.Graphs doesn’t automatically check the screen size when zooming in. Is this a known problem or do I have to add something somewhere.
I’ve seen this same problem - using vw or other screen-size dependent sizing sometimes requires resizing the screen for dcc.Graph to move to the correct shape.
Here is a demo of the problem encountered using the code above: when you zoom out, the graph resizes automatically (âś“); but when you reset the zoom, the graph zooms in instead of resizing automatically (âś—).
So this makes the graph “bleeding” outside of the window, what is not wanted.