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

使用interval-select的交互,点击元素触发顺序问题 #355

Closed
ZiQiangWang opened this issue Sep 27, 2018 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@ZiQiangWang
Copy link

在例子中,我希望interval遮住line,即柱状图处在上层,因此如下定义,先绘制line再绘制interval。

chart.line().position('year*sales').color('black');
chart.interval().position('year*sales');

但是这种情况下,interval-select点击,点到了line上。必须调换两者的顺序,才能正确触发。

chart.interval().position('year*sales');
chart.line().position('year*sales').color('black');

这种情况是否违反直觉,因为通常情况下,会觉得处在上面的元素被点到

@simaQ simaQ self-assigned this Oct 8, 2018
@simaQ simaQ added the bug label Oct 8, 2018
@simaQ simaQ added this to the 3.2.4 milestone Oct 8, 2018
@simaQ simaQ closed this as completed in b80aa3f Oct 9, 2018
@simaQ
Copy link
Contributor

simaQ commented Oct 9, 2018

升级到 3.2.4-beta.1

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

No branches or pull requests

2 participants