Skip to content

px custom_data argument #1751

@nicolaskruchten

Description

@nicolaskruchten

Right now px's standard API has a hover_data argument that accepts a list of column names to be mapped into the hoverlabel. The way it works under the hood is that it sticks all that stuff in customdata and then uses a hovertemplate. This means that at the moment there is no way to get anything into customdata without it being visible in the hoverlabel.

I'd like to add a new kwarg to all PX methods called custom_data, which would also add to customdata, but ahead of hover_data (with deduplication!) so that Dash apps can use customdata.

In addition, I think it makes sense that customdata[0] always contains the relevant index of the data frame.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions