-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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
[Feature] How can I dispatch a wheel event programmatically? #17638
Comments
I have to use two instances, because I need to set some styles on each one. Something like border style. |
I'm not sure it works with connect. You can have a try. |
Thanks, @Ovilia , but there are not only two instance, but also a div, How can I dispatch wheel event when I wheel on this div? |
Can you first make a demo (without zrender changes) to show what the problem is and then I can help check if this change is necessary? |
@JinJianQi Please provide a demo for the issue either with Official Editor, CodePen, CodeSandbox or JSFiddle. |
@Ovilia Hello~, Thanks for reply, there is a demo to show that, I just want fake the wheel event on another div. this is a simple demo:
also, you can check this link to reproduce. https://codesandbox.io/s/gantt-chart-of-airport-flights-forked-1hbsgx?file=/index.js |
Do you want to trigger ECharts' dataZoom event or what? |
@Ovilia Yes, I want to :) I just want this fakeEvent work as a natural user action. |
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue. |
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks! |
What problem does this feature solve?
I just have two Echart instances, both of them have a dataZoom. How do I make them move synchronously when I scroll?
What does the proposed API look like?
Maybe just offer a dispatch function that I can pass a event that type is wheel.
The text was updated successfully, but these errors were encountered: