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

[Bug] tooltip.axisPointer.snap:true not working well with sampling: 'lttb' #18129

Open
jeandet opened this issue Jan 1, 2023 · 0 comments
Open
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.

Comments

@jeandet
Copy link

jeandet commented Jan 1, 2023

Version

5.4.1

Link to Minimal Reproduction

https://github.com/jeandet/JS_experiments/blob/2e81d1179781fa30f569fd818d0276d21a9b3def/eCharts/index.html

Steps to Reproduce

Just load the html file and compare tooltip while zoomed or not. Then replace sampling by 'max' for example and repeat.

Current Behavior

When zoomed out tooltip doesn't always show all series values while they have the exact same sampling time, this seems to be due to lttb resampling algorithm. Not sure why it doesn't preserve the same time for each pixel, assuming it only downsample to ~2 values per pixel.

Expected Behavior

Using lttb resampling algorithm shouldn't affect resulting points time and so tooltip should show values for all series when they share the same source sampling rate/time.

Environment

- OS:Linux
- Browser:Brave
- Framework:

Any additional comments?

The given example fetches data from a public WS.

@jeandet jeandet added the bug label Jan 1, 2023
@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Jan 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

1 participant