Plotly dash app graph legend

Hi @mohankumar.c welcome to the forums.

Try updating the figure layout : fig.update_layout(legend={'x':1.1,'y':1.0}) which moves the legend more to the right.