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

Accept ratio of XY while zoom in mobile device horizontally or vertically #792

Open
ghost opened this issue Nov 4, 2023 · 0 comments
Open

Comments

@ghost
Copy link

ghost commented Nov 4, 2023

When I zoom in mobile device horizontally or vertically with my fingers, I expect the chart zoom in in both XY in same size, but the treemap chart zoom boxes in the x or y based on if I zoom horizontally or vertically.
Zoom works fine if I zoom corner to corner, but not horizontally or vertically.
I crate a jsfidlle example to show you the problem, but you need to test it in the mobile devices.
https://jsfiddle.net/sohrabi2050/em406Lvt/3/
If there is a fix I appreciate if you can fix it in the jsFiddle or give me a way to fix it.
I tested following ways but they don't help fixing the problem:
1- using diffrent mode: x, y , xy in options.
2- try reset zoom and zoom to the same level (it falls in an infinite loop)

Also you can see the example here in your mobile:
http://ali.karmozd.com/index.html

There is another problem if you can please take a look at it: when I zoom in pc or mobile, the groups title(caption) also zooming but I expected their size don't change when I zoom in/zoom out.

@ghost ghost changed the title accept ratio of xy while zoom in mobile device problem accept ratio of xy while zoom in mobile device Nov 4, 2023
@ghost ghost changed the title problem accept ratio of xy while zoom in mobile device Accept ratio of XY while zoom in mobile device horizontally or vertically Nov 4, 2023
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

0 participants