Hi,
I am building a responsive site with Plotly js scatter graphs in it.
To make the graphs responsive, I call the reize and relayout methods on window resize. In relayout, I dynamically calculate font sizes and the graph margin each time to make it look good.
It all resizes nicely except the legend, which keeps a big distance between each of its items. I can’t find how to edit that in layout.
What’s the best way?