Plotly donut chart displaying with lots of space at the top

We moved the legend so that it appeared underneath the chart. The only problem is that we are seeing a lot of whitespace above the graph. Is there any way to lessen this?


Try setting layout.margin.t = 0

We are also interested to know:

We’ve moved the legend to the bottom. This is fine except it tends to cover some of the annotations for the smaller slices of the chart, that live outside the chart slices themselves. You can also see this problem in the image above. Do you have any suggestions on how to remedy that - maybe by moving the legend down further?