Skip to content

some columns do not appear in hover if using labels overrides already used common names in Plotly Express #2562

Open
@emmanuelle

Description

@emmanuelle

Should we raise a warning or an error in the following case (which is very contrived of course)

import plotly.express as px
df = px.data.tips()
fig = px.scatter(df, x='tip', y='total_bill', color='day', facet_col='sex',
                 labels={'tip':'sex', 'day':'sex'})
fig.show()

in this case, in the hover only the value corresponding to x='tip' appears.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogbugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions