Displaying the legend of a pie chart with zero data

Hello everyone!
I built a subplot. One of the graphs is Pie.If there is zero data, then go.Pie is not displayed and the legend is not displayed either. When Pie doesn’t have a legend, it knocks down the display of graphs. How to always display the Pie legend, even with zero data?
Can anyone help?