Ask coding questions

← Back to all posts
Why are my Vis.js force directed graphs are out of the view in bootstrap accordion?

I am working on a page with Python/Django and I like to use some Vis.js charts like the force-directed graphs. If I put my graph under an accordion item it pushes out the graph from the viewport like on the HTML image below.

If it is not under the accordion it works perfectly. What am I doing wrong?


javascript inside the HTML