How to display legend with fixed width

http://cronus.eecs.northwestern.edu/html/SYNC/src/

In this tool, since the legend has different length, the timer marker are not aligned. Are there any Plotly options that could specify width of the legend?

2 Likes

Hmm. I don’t see a legend on your page:

Sorry, it’s updated now:

Because the legends does not have fixed size, the red marker are not aligned.

Nice.

There’s no way to display legend with a fixed width at the moment, but you should be able to get the same result by setting either layout.margin.r or layout.xaxis.domain.

1 Like

Thank you so much, the tool is fixed now!

1 Like