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

Overlapping charts in the same Root #1595

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

Overlapping charts in the same Root #1595

bossbelle opened this issue Jun 29, 2024 · 2 comments

Comments

@bossbelle
Copy link

I created 2 charts in the same root.
The problem was that what I wanted was two charts stacked vertically and displayed, but the two charts are overlapping.
Is there a way to stack two charts vertically and display them?

I would like to link two charts like the example below.
However, in the example below, each root is used for each Div.
I want to export two charts as one image, so I have to put two charts in one root.

https://www.amcharts.com/docs/v5/tutorials/syncing-axis-zooms-across-multiple-charts/

codepen

@martynasma
Copy link
Collaborator

You need to add vertical layout to the main container so it knows how to arrange its children:

root.container.set("layout", root.verticalLayout);

Copy link

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