Skip to content
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

add tooltip annotation feature #7054

Open
kb- opened this issue Jul 19, 2024 · 1 comment
Open

add tooltip annotation feature #7054

kb- opened this issue Jul 19, 2024 · 1 comment
Labels
feature something new P3 not needed for current cycle

Comments

@kb-
Copy link

kb- commented Jul 19, 2024

Hi,

I would like to propose a tooltip feature.

When exploring data and presenting our findings, it is important to be able to interactively annotate data points. Most popular data analysis software allow to do that.

I wrote a code to introduce this functionality (found in this branch). The tooltip function can be activated by a new modebar button. It allows to add an annotation to every clicked point. By default, tooltips contain x and y coordinates. They can be customized to contain any additional data attached to the trace or points, which makes it a powerful tool for data exploration and presentation.

When a plot is created with editable: true, the tooltips can be dragged around for placement or deleted interactively. Their text can also be edited. To delete a tooltip, click on its text and delete it.

Tooltips can be customized with an optional tooltiptemplate (leverages existing hovertemplate code) and tooltip annotation options (leverages existing annotations code)
331887266-f7258b47-6eb2-4c3c-a3ce-f23899fe57e1
Live example

The JS version is already compatible with Dash when a figure is created with a dictionary passed to dcc.Graph (Dash demo) but not yet with Plotly.py

@kb- kb- changed the title Tooltip feature proposition Tooltip annotation feature proposition Jul 19, 2024
@gvwilson gvwilson assigned gvwilson and unassigned gvwilson Jul 26, 2024
@gvwilson gvwilson changed the title Tooltip annotation feature proposition add tooltip annotation feature Aug 9, 2024
@gvwilson gvwilson added feature something new P3 not needed for current cycle labels Aug 9, 2024
@kb-
Copy link
Author

kb- commented Aug 28, 2024

@gvwilson
I'm working on a PR. Can anyone help me with the attributes.js? #7127 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new P3 not needed for current cycle
Projects
None yet
Development

No branches or pull requests

2 participants