Change line length in scatter legend

Is there any way to change the line length in a scatterplot legend (“type”: “scatter”, “mode”: “lines”)?

Not at the moment unfortunately.