question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tooltip on hover can't be removed

See original GitHub issue

Describe the bug It looks like the tooltip-on-hover feature for scatter marks is always activated, even when we don’t want it.

To Reproduce With a notebook consisting of the following code:

import numpy as np
from bqplot import pyplot as plt
import bqplot

n = 200
x = np.linspace(0.0, 10.0, n)
y = np.cumsum(np.random.randn(n)*10).astype(int)

fig2 = plt.figure( title='Line Chart')
np.random.seed(0)
p = plt.scatter(x, y)
fig2.layout.width = 'auto'
fig2.layout.height = 'auto'
fig2.layout.min_height = '300px' # so it shows nicely in the notebook
fig2

p.interactions = {'click': 'select'}
p.selected_style = {'opacity': 1.0, 'fill': 'DarkOrange', 'stroke': 'Red'}
p.unselected_style = {'opacity': 0.5}
p.tooltip = bqplot.Tooltip(fields=['x', 'y'], formats=['', '.2f'])

We can see that the tooltip on hover works, even though we didn’t specify it in the interactions. For it to work we should have:

p.interactions = {'click': 'select', 'hover': 'tooltip'}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
martinRenoucommented, Sep 20, 2019

Sure, PR coming 😃

0reactions
davidbrochartcommented, Sep 20, 2019

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove tooltip at out of hover - javascript - Stack Overflow
Problem is I want to remove tooltip when mouse come over tooltip or coords. Because if we hover USA, we can't hover México...
Read more >
tooltip on hover can't be removed · Issue #896 - GitHub
Describe the bug It looks like the tooltip-on-hover feature for scatter marks is always activated, even when we don't want it.
Read more >
Completely remove Power BI tooltips and hover-overs
Removing Power BI tooltips on a Matrix and a Table will still leave you with the mouse- hover info. ... Your browser can't...
Read more >
Add ToolTips on Mouse Hover for Buttons and Shapes in Excel
Excel trick to add ToolTips to any of your shapes when a user hovers over them in a worksheet, including buttons. This is...
Read more >
Tooltips on visual types in QuickSight - AWS Documentation
When you hover your cursor over any graphical element in an Amazon QuickSight visual, a tooltip appears with information about that specific element....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found