I am working on customizing a legend and am receiving the following error when I try to use fig.update_layout(legend=dict(itemwidth=<VALUE>)
ValueError: Invalid property specified for object of type plotly.graph_objs.layout.Legend: 'itemwidth’
According to the documentation it seems this is a valid property. Am I doing something wrong, or is this deprecated? Can anyone else get this property to work?
Please note that this attribute was added in a recent version of the library, so it’s normal to see invalid property specified on older versions. The latest version is 4.14.3.