Gantt Chart, set legend at the top of chart

I’m starting to create a gantt chart using the create_gantt module.
Some of the charts I have close to 100 tasks.
I’ve used :

fig2[‘layout’].update(autosize=False, width=1800, height=1500, margin=dict(l=460))

So that the tasks full length are seen, but to view the legend on the right we need to scroll down to view it.
Is there a way to fix the legend so that it is at the top rather than the bottom?