More than one legend allowed/Changing legends dynamically?

  1. Is it possible in Plotly javascript to display more than 1 legend? Based on my research I suspect the answer is no, but figured I would ask.

  2. Is it possible to dynamically change the content of a legend ? Meaning, I would display one legend when all traces are displayed, but another legend when only a single trace is displayed.

Thanks in advance!

Not at the moment, no.

Should be possible by listening to plotly_legendclick

Thanks so much for your reply!