Skip to content

[BUG]: creating empty px.histogram() results in an error #5534

@Madrigallo

Description

@Madrigallo

Creating an empty histogram with px.histogram() leads to a TypeError. Other types of graphs like px.pie(), px.scatter(), px.bar() allow empty figure to be created.

Steps to reproduce

import plotly.express as px
px.scatter()  # this is fine
px. histogram()  # this is not

Notes

Plotly 6.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions