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] 折线图设置降采样sampling: 'lttb'时,选中非采样点,tooltip的formatter函数的params参数返回为空,tooltip也不会弹出 #19914

Open
turnflowerdown opened this issue May 9, 2024 · 1 comment
Labels
bug pending We are not sure about whether this is a bug/new feature.

Comments

@turnflowerdown
Copy link

Version

5.5.0

Link to Minimal Reproduction

https://codesandbox.io/p/sandbox/large-scale-area-chart-9hqlk9

Steps to Reproduce

使用官方示例:https://codesandbox.io/p/sandbox/large-scale-area-chart-9hqlk9

  1. 缩放缩小到能够显示所有数据
  2. 鼠标移入图表,发现显示了tooltip的标记线,但是没有显示tooltip的content
  3. 移动到部分数据上或放大,又可以显示content

Current Behavior

折线图设置降采样sampling: 'lttb'时,选中非采样点,tooltip的formatter函数的params参数返回为空,tooltip也不会弹出

Expected Behavior

希望选中非采样点时,也可以弹出tooltip的content

Environment

- OS: Windows
- Browser: Chrome 最新版本
- Framework: React

Any additional comments?

No response

@echarts-bot echarts-bot bot added the pending We are not sure about whether this is a bug/new feature. label May 9, 2024
Copy link

echarts-bot bot commented May 9, 2024

@turnflowerdown It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

[Bug] When the line chart is set to downsample: 'lttb', if the non-sampled point is selected, the params parameter of the formatter function of the tooltip will return empty, and the tooltip will not pop up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

1 participant