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

版本5.2.7,如何实现鼠标滚轮放大缩小图表 #6537

Open
mihuartuanr opened this issue Dec 6, 2024 · 0 comments
Open

版本5.2.7,如何实现鼠标滚轮放大缩小图表 #6537

mihuartuanr opened this issue Dec 6, 2024 · 0 comments

Comments

@mihuartuanr
Copy link

问题描述

"@antv/g2": "^5.2.7",
折线图时间作为横坐标,长时间段的数据会很多,如何实现图表的缩放,看到了相关的文档,看链接是低版本的,虽然进入后展示的是5.x版本的文档:
https://g2-v4.antv.vision/zh/docs/api/general/interaction#view-zoom
https://g2-v3.antv.vision/zh/docs/api/interaction#zoom-%E7%BC%A9%E6%94%BE
在5.2.7版本中没有上述文档中相关的声明,无法使用。
brushFilter能实现框选放大,也不知道如何反向缩小,也没找到相关的文档实现鼠标事件的缩放……

重现链接

No response

重现步骤

No response

预期行为

通过鼠标实现图表的缩放

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant