Thanks for the hint. I have tried it, but that didn’t work for me.
It however solved another problem I had with a graph that was squeezed the same way somehow (graphs and mapbox seems to confuse the size they have been attributed somehow, unless you force the refresh by adding a hidden empty div. But this is another problem I believe).
The final problem of using the visibility is that the element is still present, so this may impact all the element around when you try to insert toggle to switch between one type of graph or another.
That could be a new dash feature actually, some sort of toggle div, that can show either one thing or another depending on the status. It is quite similar to tabs, so that might be feasible as well to modify the tabs component.
Anyway, thanks for the suggestion!