By default, traces are named according to their index (zero-base), which will be displayed in the legend and tooltip.
To change the name of a trace, just enter your desired name in the "Name" field.
We can see the changes in the legend.
Last updated 2 years ago