To be honest, I’m not really sure what you’re hoping for here. I listed a few possible way to customize the legend style, I doubt it will be sufficiently for your needs, but it should help.
I am hoping to get more colors in legends, after bit digging in google and main src code found out plotly use d3.scale.category10 that means after 10 entries color will repeat, see below for easiest example.