-
Notifications
You must be signed in to change notification settings - Fork 1.5k
How to resize nodes at runtime #3524
Comments
I would think that the |
Hi, use this example Network | sizing and insert tis code by using the browser console. It change the max scaling value from 150 to 500. But nothing happens. I also tried to remove the "customScalingFunction".
This one is working (changing the shape of the nodes)
|
OK. so the In the given example, change to the following: ...
nodes = new vis.DataSet([
...
]);
...
edges = new vis.DataSet([
]);
... Now, find a way to scale a node. Here's a silly example: function resize() {
var prev = nodes.get(1);
nodes.update({id:1, value: prev.value*1.2});
setTimeout(resize, 1000);
}
resize(); |
Hi, thank you very much. The combination of both is working. Umpani |
Great! Please close the issue if you're done. |
This is not a real bug, but a question. Its a duplicate of this:
I would like to resize nodes of a vis.js network at runtime. My goal is to create a slidercontrol to expand all nodes (an labels) or collapse them.
At first, I tryed to manipulate the Scaling values.
But there are no results.
My second idea was to manipulate the value value of every single node.
But this doesn't work either.
Has anyone an idea how to resize nodes at runtime?
Thx Umpani
The text was updated successfully, but these errors were encountered: