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

d3.forceManyBody() error : e.quadtree is not a function #304

Open
moda20 opened this issue Jan 24, 2023 · 1 comment
Open

d3.forceManyBody() error : e.quadtree is not a function #304

moda20 opened this issue Jan 24, 2023 · 1 comment

Comments

@moda20
Copy link

moda20 commented Jan 24, 2023

trying to set the d3Force for charge using forceManyBody would trigger this "error : e.quadtree is not a function"
i call this after the graph has been initialised : Graph.d3Force('charge', d3.forceManyBody().strength(-60).distanceMax(250));

it seems the simple use of d3.forceManyBody() causes this issue. i ma importing the forceManyBody function from cdn version of d3-force-3d

here is the error screenshot
image

this also happens with the regular d3-force package

@vasturiano
Copy link
Owner

@moda20 thanks for reaching out.

Would you mind doing a quick example on https://codepen.io/ or https://codesandbox.io/ that reproduces your issue?
So we can have a closer look.

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

2 participants