Skip to content

hide name from within hovertemplate #2304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2020
Merged

hide name from within hovertemplate #2304

merged 1 commit into from
Mar 27, 2020

Conversation

nicolaskruchten
Copy link
Contributor

This should result in no change (i.e. the trace name still will not appear in at the edge of the hoverlabel) but makes it easier to use the upcoming "unified" hovermode with PX. With this PR, simply using .update_traces(hovertemplate=None) will result in a nice-looking unified hoverlabel, but without it, users will also have to set namelength back to some non-zero value.

Mind you, they might have to set it to some higher value than the default of 15 anyway, but at least the trace name will mostly/partly show up!

@emmanuelle
Copy link
Contributor

looks good, thank you! 💃

@nicolaskruchten nicolaskruchten merged commit 93cdc5e into master Mar 27, 2020
@nicolaskruchten nicolaskruchten deleted the px_hover_name branch June 19, 2020 16:16
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.

2 participants