It does not seem to be possible to drag/move a legend on the offline version of plotly.js (but you can on the online version). Is there a setting to turn this on or is it not supported?
Use the editable
config options (full list here) to turn this on e.g.:
Plotly.plor('graph', data, layout, {editable: true});
Got it. Thanks for your help.