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 we can give padding between nodes #1802

Open
hrpatidar opened this issue Dec 10, 2024 · 2 comments
Open

How we can give padding between nodes #1802

hrpatidar opened this issue Dec 10, 2024 · 2 comments
Labels

Comments

@hrpatidar
Copy link

hrpatidar commented Dec 10, 2024

https://codepen.io/team/amcharts/pen/OJmBxXo

In above given example, you can see, third layer child are overlap. In my case, on third layer counts around 10 and more.. How it is possible to render without touch each other? I tried to given padding, but it's not working at all.

series.nodes.template.setAll({
      paddingTop: 10,
      paddingBottom: 10,
      paddingLeft: 10,
      paddingRight: 10,
      width: 100, // Fixed node width
      height: 50, // Fixed node height
      draggable: true,
    });

See attached screenshot from my local. I want to avoid overlap.. I really need it for my running product.

Screenshot 2024-12-10 at 5 10 54 PM

Repository owner deleted a comment from hrpatidar Dec 13, 2024
@martynasma
Copy link
Collaborator

Would you be able to post your whole chart and data on CodePen/jsFiddle so that we can test?

@martynasma
Copy link
Collaborator

On second thought, I don't think what you need is possible. The space is divided for each node based on its immediate children count. It does not take sub-children into account, and it cannot make sub-child nodes go under non-own parents.

Sorry, but we won't be able to to suggest anything for it.

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

No branches or pull requests

2 participants