-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
bugsomething brokensomething broken
Description
Description
plotly.js 3.3.1 updated the pie trace to allow arrays of boolean values to be passed in for the legend and showlegend attributes. In plotly.py 6.5.1 (the latest version), the BooleanValidator doesn't allow for arrays. As such, arrays can't be passed in for these attributes in plotly.py.
Steps to reproduce
- Install plotly.py 6.5.1
- Run the following code:
import plotly.graph_objects as go pie = go.Pie( labels=["A", "B", "C"], values=[65, 15, 20], showlegend=[True, False, False], ) fig = go.Figure([pie], go.Layout()) fig.show()
- Note the
ValueErrorthat's raised
Notes
- This is the first time that a boolean attribute has had
arrayOkas true in the schema. That's why this update is required.
Metadata
Metadata
Assignees
Labels
bugsomething brokensomething broken