Skip to content

Invalid property specified for object of type plotly.graph_objs.layout.Legend: 'itemwidth' #3178

@bg-bi

Description

@bg-bi

Despite being documented here, the Figure.legend.itemwidth property cannot be set in Python. I am using the latest version of Plotly.py at time of writing, v4.14.3. This issue is also discussed on the plotly community forum here.

Here's a minimal example to reproduce the error:

import plotly.graph_objects as go
fig = go.Figure()
fig.update_layout(
    legend=dict(itemwidth=20) # ValueError raised
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions