It would be helpful to be able to specify a label for a legend.

Desired result:

Try checking here if Plotly.js supports this option.