Hi dear Plotly community!
I copy-pasted a code from official website page on references of Selection Selections in Python. The code is below:
import plotly.express as px df = px.data.iris() fig = px.scatter(df, x="sepal_width", y="sepal_length") fig.update_layout(dragmode='select', newselection=dict(line=dict(color='blue'))) fig.show()
I am getting this error:
ValueError: Invalid property specified for object of type plotly.graph_objs.Layout: 'newselection' Did you mean "editrevision"?
Although my Plotly package version is latest 5.10
I also checked for Plotly Figure Layout refernce at Layout in Python and found that it should be ok, not error.