How to not display useless information in Plotly?

in this graph, for the HS66x4_SMP, I have four lines

But for HS68_full, just have one line, but on the right of the graph, shows four name of four lines, for HS68_full, I just want it display one name of the line,don’t display useless information on the right.