<p>The options for the edges have to be contained in an object titled 'edges'. All of these options can be supplied per edge as well. Obviously, 'id' should not be defined globally but per edge. Options defined
<p>The options for the edges have to be contained in an object titled 'edges'. All of these options can be supplied per edge as well. Obviously, 'id' should not be defined globally but per edge. Options defined
in the global edges object, are applied to all edges. If an edge has options of its own, those will be used instead of the global options.</p>
in the global edges object, are applied to all edges. If an edge has options of its own, those will be used instead of the global options.</p>
<p><b><i>When you have given an edge an option, you will override the global option for that property. If you then set that option to <code>undefined</code> or <code>null</code>,
<p><b><i>When you have given an edge an option, you will override the global option for that property. If you then set that option to <code>null</code>,
it will revert back to the default value.</i></b>
it will revert back to the default value.</i></b>
</p>
</p>
<p>Click on the full options or shorthand options to show how these options are supposed to be used.</p>
<p>Click on the full options or shorthand options to show how these options are supposed to be used.</p>
@ -138,7 +138,7 @@ var options = {
min: 14,
min: 14,
max: 30,
max: 30,
maxVisible: 30,
maxVisible: 30,
drawThreshold: 3
drawThreshold: 6
},
},
customScalingFunction: function (min,max,total,value) {
customScalingFunction: function (min,max,total,value) {
<p>The options for the nodes have to be contained in an object titled 'nodes'. All of these options can be supplied per node as well. Obviously, 'id' should not be defined globally but per node. Options defined
<p>The options for the nodes have to be contained in an object titled 'nodes'. All of these options can be supplied per node as well. Obviously, 'id' should not be defined globally but per node. Options defined
in the global nodes object, are applied to all nodes. If a node has options of its own, those will be used instead of the global options.</p>
in the global nodes object, are applied to all nodes. If a node has options of its own, those will be used instead of the global options.</p>
<p><b><i>When you have given a node an option, you will override the global option for that property. If you then set that option to <code>undefined</code> or <code>null</code>,
<p><b><i>When you have given a node an option, you will override the global option for that property. If you then set that option to <code>null</code>,
it will revert back to the default value.</i></b>
it will revert back to the default value.</i></b>
</p>
</p>
<p>Click on the full options or shorthand options to show how these options are supposed to be used.</p>
<p>Click on the full options or shorthand options to show how these options are supposed to be used.</p>
@ -143,7 +143,7 @@ var options = {
min: 14,
min: 14,
max: 30,
max: 30,
maxVisible: 30,
maxVisible: 30,
drawThreshold: 3
drawThreshold: 6
},
},
customScalingFunction: function (min,max,total,value) {
customScalingFunction: function (min,max,total,value) {
You can change any settings you want while the network is initialized using the vis Dataset, setOptions and setData. Finally you can destroy the network and completely reinitialize it.
</p>
<h4>DataSet (change the data while it's loaded and initialzed):</h4>
this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap));// if 1 then min distance = 0.5, if 0.5 then min distance = 0.5 + 0.5*node.shape.radius