Skip to content

hovertemplate displays unwanted trace information #3621

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

Closed
mbejda opened this issue Mar 10, 2019 · 2 comments
Closed

hovertemplate displays unwanted trace information #3621

mbejda opened this issue Mar 10, 2019 · 2 comments
Assignees

Comments

@mbejda
Copy link

mbejda commented Mar 10, 2019

Here is a codesandbox demonstrating this issue.
https://codesandbox.io/s/8xqw51zr18
If hovertemplate is set to %{y:,.2f}" the chart display unwanted trace information on hover.
Screen Shot 2019-03-10 at 12 07 24 PM

To get around that bug I need to append additional information to the hovertemplate.
"%{y:,.2f}<extra></extra>" so that the hover renders correctly.

Screen Shot 2019-03-10 at 12 09 46 PM

@antoinerg
Copy link
Contributor

antoinerg commented Mar 11, 2019

Thank you @mbejda for pointing this out. Appending an empty extra tag as you did is exactly how to get rid of the default hover secondary box. I will update the documentation of the hovertemplate to mention this as it may not be obvious at all.

@antoinerg
Copy link
Contributor

antoinerg commented Mar 12, 2019

@mbejda if you don't mind, I will keep this issue open until we merge PR #3623! The documentation should be updated.

Thanks again for reporting this!

@antoinerg antoinerg reopened this Mar 12, 2019
@antoinerg antoinerg self-assigned this Mar 12, 2019
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

No branches or pull requests

2 participants