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

getSnapRecords 在饼图出错,不好用 #15

Closed
dxq613 opened this issue Nov 25, 2017 · 0 comments
Closed

getSnapRecords 在饼图出错,不好用 #15

dxq613 opened this issue Nov 25, 2017 · 0 comments
Assignees

Comments

@dxq613
Copy link
Member

dxq613 commented Nov 25, 2017

问题

获取饼图点击时对应的数据,目前只能通过 getSnapRecords 来获取,但是由于通用的逻辑都是通过 x 轴的位置来定位点击的最近的数据,而饼图经过了 stack 和 transpose ,所以需要通过 y 轴来判断位置。

所以需要给 getSnapRecords 增加一个参数,不易于理解和使用。

3.0 中这个接口报错。

通过绑定事件获取画布上的点,最好能在chart 上提供一个方法

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

1 participant