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

After setting minZoomLevel, the chart shifts to the bottom-right corner when zooming out #1793

Open
nontimebomala opened this issue Nov 21, 2024 · 3 comments
Labels
bug Something isn't working in next release Implemented. Available soon.

Comments

@nontimebomala
Copy link

Question

here is my settings:

const zoomableContainer = chartRoot.container.children.push(
    ZoomableContainer.new(chartRoot, {
      width: p100,
      height: p100,
      wheelable: true,
      pinchZoom: true,
      maxZoomLevel: 16,
      minZoomLevel: 0.2
    })
  );

1、When I zoom out, the chart moves to the bottom-right corner.
image

2、Following point 1, the chart then becomes undraggable.
3、When I zoom in, dragging becomes restricted (for example, I want to drag downward to make the content visible, but I can't drag downward).
image

Environment (if applicable)
V5

Additional context

@nontimebomala
Copy link
Author

and i set the background to the ZoomableContainer,when i zoom out,its will be like this
image

@zeroin zeroin added bug Something isn't working in next release Implemented. Available soon. labels Nov 22, 2024
@zeroin
Copy link
Collaborator

zeroin commented Nov 22, 2024

Thanks, we will fix it in next release and will let you know. Meanwhile you can fix the issue by setting big maxPanOut for the zoomableContainer:

maxPanOut: 10

Do you use the latest version?
We will also fix the background issue.

@nontimebomala
Copy link
Author

Thanks, we will fix it in next release and will let you know. Meanwhile you can fix the issue by setting big maxPanOut for the zoomableContainer:

maxPanOut: 10

Do you use the latest version? We will also fix the background issue.

thanks for ur answer,i'm using the 5.10.7 version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in next release Implemented. Available soon.
Projects
None yet
Development

No branches or pull requests

2 participants