Skip to content

Conversation

@camdecoster
Copy link
Contributor

@camdecoster camdecoster commented Jan 9, 2026

Description

Update BooleanValidator to handle arrays of values.

Closes #5463.

Changes

  • Handle arrays in BooleanValidator
  • Add tests

Testing

  • Be on main
  • 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 that a ValueError is raised
  • Switch to this branch
  • Run the same code again
  • Note that chart is rendered correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Pie legend, showlegend attributes don't accept array values

3 participants