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

Create custom tooltips #499

Open
alexsb opened this issue Nov 5, 2021 · 8 comments
Open

Create custom tooltips #499

alexsb opened this issue Nov 5, 2021 · 8 comments
Assignees
Labels
status: help wanted Extra attention is needed type: feature New feature or request

Comments

@alexsb
Copy link
Contributor

alexsb commented Nov 5, 2021

Replace html tooltip with custom tooltip that appears immediately on hover (no delay). Custom tooltips could also be more advanced, including, for example, a larger scale version of the visualization.

@alexsb
Copy link
Contributor Author

alexsb commented Nov 17, 2021

We use popper.js at datavisyn. It would be good if LineUp either also used popper, or gave us a structured way to implement it as a popper tool-tip.

@thinkh
Copy link
Member

thinkh commented Nov 17, 2021

@alexsb LineUp uses already Popper.js 2 to open the menu and dialogs.

"@popperjs/core": "^2.9.3",

@thinkh thinkh added the type: feature New feature or request label Nov 18, 2021
@sgratzl
Copy link
Member

sgratzl commented Nov 24, 2021

can you clarify for what those custom tooltips should be used? and what the default content should be? cause it will create a lot of event handlers

@sgratzl sgratzl added the status: help wanted Extra attention is needed label Nov 24, 2021
@alexsb
Copy link
Contributor Author

alexsb commented Nov 29, 2021

For more information about an item; the standard tool-tip is just not customizable and fast enough for a data visualization application.

@sgratzl
Copy link
Member

sgratzl commented Nov 30, 2021

what else is needed besides: https://codepen.io/sgratzl/pen/bGoGobq?editors=0010 ?

@alexsb
Copy link
Contributor Author

alexsb commented Nov 30, 2021

@thinkh can you comment on the technical part (i.e., whether it's easy to convert this into a tool-tip in datavisyn applications).

In the codepen it doesn't look like a tool-tip atm :).

@sgratzl sgratzl self-assigned this Nov 30, 2021
@thinkh
Copy link
Member

thinkh commented Dec 3, 2021

Yes, with this we can add custom tooltips for whole rows. But we have also the use cases where we would need a tooltip for certain cells (e.g., showing a long text in a StringColumn, or a thumbnail and enlarge it in a tooltip). How would we do this?

@sgratzl
Copy link
Member

sgratzl commented Dec 3, 2021

two approaches I can see

  1. create a special renderer that attaches to the rendered cell node and also handles the tooltip
  2. use the same logic as in the context menu example where you use bubbling of events along with .target to find the hovered cell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: help wanted Extra attention is needed type: feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants