/    Sign up×
Community /Pin to ProfileBookmark

vis.js is there any way to place two nodes closely in visjs hierarchical layout.

I’m trying to implement visjs network with 5 nodes as pr picture shown below.I have chosen Hierarchical layout with level spacing 400.But i need the first node to be placed as close as possible to the second node.Is there any way to achieve this.

Here is my code.
https://plnkr.co/edit/QnbYRcRE1ECrWoOhZkXz?p=preview

Screenshot of functionality i’m trying to achieve.

Vis.js,vis-network.min.js

![url=https://www.webdeveloper.com/assets/files/2020-01-07/1578377371-159673-pvc-view.png]
](Image)

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @venkatanaresh_553 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...