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

Drag and zoom functionality #3480

Closed
1 task done
mostopalove opened this issue Jun 17, 2021 · 3 comments
Closed
1 task done

Drag and zoom functionality #3480

mostopalove opened this issue Jun 17, 2021 · 3 comments

Comments

@mostopalove
Copy link

mostopalove commented Jun 17, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://codepen.io/mostopalove/pen/gOmqNWw

Steps to reproduce

I have two goals.
1 - make the view-zoom interaction work only for the Y axis (in this example, it is a year axis)
2 - make the drag-move interaction work for this type of chart. And also it must work only for the Y axis.

Are there any solution? Please, update my simple example. Thank you!

Environment Info
g2 4.1.18
System MacOS
Browser latest
@hustcc
Copy link
Member

hustcc commented Jun 25, 2021

you can see the code of view-zoom.

private zoomDim(dim, dRatio) {

zoom interaction is zooming the field scale(x / y).

@hustcc hustcc closed this as completed Jun 25, 2021
@mostopalove
Copy link
Author

@hustcc Can you give me an example of this? Since I did it above.

@mostopalove
Copy link
Author

@hustcc Could you show me an example of y-axis scaling?

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

2 participants