almende / vis

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

Can't to change size of circle node #4230

Closed aplinxy9plin closed 5 years ago

aplinxy9plin commented 5 years ago

Please, help me. I need to create static size of circle node.
How to do it better?

nodes = new DataSet(nodes_arr)
            data = {
              nodes: nodes,
              edges: edges,
              events: (e) => {
                console.log(e);
              }
            }
            options = {
              nodes: {borderWidth:0,shape:"circle",color:{background:'#F92C55', highlight:{background:'#F92C55', border: '#F92C55'}},font:{color:'#fff'}},
              physics: {
                stabilization: false,
                minVelocity:  0.01,
                solver: "repulsion",
                repulsion: {
                  nodeDistance: 40
                }
              },
            };
jgorene commented 5 years ago

Not sure what you mean... but take a look at this example "Scale nodes and edges depending on their value..." It may meet your needs, hoping to ;)