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

Tooltip disappears on chart update #3305

Closed
CmShepard opened this issue Jul 20, 2023 · 2 comments
Closed

Tooltip disappears on chart update #3305

CmShepard opened this issue Jul 20, 2023 · 2 comments

Comments

@CmShepard
Copy link

Description

Tooltip disappears on chart load with updated data.

Steps to check or reproduce

  1. Hover on data point
  2. Wait for the chart to update
  3. Tooltip disappears even if the corresponding datapoint was not changed or updated
    https://jsfiddle.net/bqm9skv7/7/

It seems that it is a regression, in the version 3.6.0 the bug was not present.

@netil netil added the question label Jul 25, 2023
@netil
Copy link
Member

netil commented Jul 27, 2023

Hi @CmShepard, from the example you provided, it seems reasonable maintain tooltip display and update its contents when data is updated.

But, the dynamic data loads not always done maintaining same x Axis values.

For example, when the loaded data can have different x Axis intervals and the current mouse position have to reflect corresponding x Axis updated. And there will be several more cases which need to be handle to make tooltip not disappear.

I'm not sure if this needed to be updated for now. I'll be considering how to handle in this scenario.

Anyway, thanks for the report.

@CmShepard
Copy link
Author

Hi @netil, thank you for your answer! Sure it makes sense. It would be great to have maybe some sort of boolean flag keepTooltip, that would prevent the tooltip from hiding on chart load.

For your understanding, my usecase is the chart with fixed timescale x-axis, where real-time data is updated every second. Tooltip hides even if the "old" value is hovered. That makes tooltip practically unusable in my case.

netil pushed a commit to netil/billboard.js that referenced this issue Aug 4, 2023
- Enhance tooltip update dynamically on redraws
- refactoring on handling events
- Improve .tooltip.show() param to accept 'id' for Arc types

Ref naver#3305
@netil netil closed this as completed in 1df1bd9 Aug 4, 2023
github-actions bot pushed a commit that referenced this issue Aug 4, 2023
## [3.9.2](3.9.1...3.9.2) (2023-08-04)

### Bug Fixes

* **line:** Fix step line path rendering on Windows ([b2633b2](b2633b2)), closes [#3295](#3295)
* **load:** Enhance tooltip update on dynamic load ([1df1bd9](1df1bd9)), closes [#3305](#3305)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants