I would like the legend to be visible even if only one trace is plotted. Currently the legend is not visible with only one trace. Reading the docs, I cannot see if this can be enabled. Anyone know how to do this or some work-around?
I know you can click/double click to hide/isolate with multiple traces and this functionality doesn’t make sense for a single trace which is presumably why a single trace legend is hidden. (Using latest version)
Ahhh, just found the answer… include " showlegend: true," in the trace definition.
1 Like