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

How to remove empty space on the left and right sides of a chart #1557

Closed
bossbelle opened this issue Jun 5, 2024 · 2 comments
Closed

How to remove empty space on the left and right sides of a chart #1557

bossbelle opened this issue Jun 5, 2024 · 2 comments

Comments

@bossbelle
Copy link

bossbelle commented Jun 5, 2024

I want the contents of the chart to be attached to the y-axis.
However, if you zoom out or drag the chart, you will see the empty space as shown in the image below, and it will move away from the y-axis.

Is there a way to make sure this empty space doesn't show up?
codepen
image

@martynasma
Copy link
Collaborator

You can use maxDeviation setting for that.

More info: https://www.amcharts.com/docs/v5/charts/xy-chart/zoom-and-pan/#Over_zooming

Copy link

github-actions bot commented Jul 6, 2024

This issue is stale because it has been open 30 days with no activity. It will be closed in 5 days unless a new comment is added.

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

No branches or pull requests

2 participants