almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs
7.85k stars 1.48k forks source link

Network node to be positioned correctly #4147

Closed jhabap18 closed 5 years ago

jhabap18 commented 6 years ago

Hi Vis experts, I have a vis network attached in the image visnetwork

Here I have two groups of nodes - One with Dot and one with triangle I want the node with yellow highlighted color to be positioned where arrow points to. It also seems logical if you'll see the neighborhood nodes and edges of this node. How can I achieve this. Please suggest. If it's possible, I'll share the code also. Let me share the options field I am using- options = { interaction: { hover: true, keyboard: { enabled: true, bindToWindow: false },

                    },
                    layout: {
                        hierarchical: {
                            direction:"LR",
                            sortMethod: "directed",
                            levelSeparation: 300
                            //sortMethod: "hubsize"
                        }
                    }
                }
softwareCobbler commented 5 years ago

The "in" edge into your yellow circle is the only edge going "backwards", suggesting to me that you need to manually set your node levels.