Is it possible to change legend title side as in colorbar?

Is it possible to apply the same style to legend, as it is done for colorbar?
Code for colorbar:

fig.update_coloraxes(
        colorscale="plasma",
        colorbar=dict(
            title=dict(text="Number of unique subscribers", side="right", font=dict(size=16, weight=600)),
            ticklen=10,
            len=0.35,
            x=1,
            xpad=20,
            tickfont=dict(size=14, weight=500),
        ),
    )

side="right" makes the magic. But can this be done for the legend too?

Hi @ilazariev ,

try this post, it seems relevance to you.

1 Like