Skip to content

hide name from within hovertemplate - #2304

Merged
nicolaskruchten merged 1 commit into
masterfrom
px_hover_name
Mar 27, 2020
Merged

hide name from within hovertemplate#2304
nicolaskruchten merged 1 commit into
masterfrom
px_hover_name

Conversation

@nicolaskruchten

Copy link
Copy Markdown
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
Copy Markdown
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