|
@ -23,7 +23,7 @@ |
|
|
{id: 1, label: 'Node 1', value:3, title:'hello world'}, |
|
|
{id: 1, label: 'Node 1', value:3, title:'hello world'}, |
|
|
{id: 2, label: 'Node 2', value:1, group:'bla'}, |
|
|
{id: 2, label: 'Node 2', value:1, group:'bla'}, |
|
|
{id: 3, label: 'Node 3', value:5}, |
|
|
{id: 3, label: 'Node 3', value:5}, |
|
|
{id: 4, label: 'Node 4', value:3}, |
|
|
|
|
|
|
|
|
{id: 4, value:3}, |
|
|
{id: 5, label: 'Node 5', value:2} |
|
|
{id: 5, label: 'Node 5', value:2} |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
@ -44,7 +44,6 @@ |
|
|
edges: edges |
|
|
edges: edges |
|
|
}; |
|
|
}; |
|
|
var options = { |
|
|
var options = { |
|
|
configure:'nodes', |
|
|
|
|
|
// physics:{barnesHut:{gravitationslPull:34}, solver:'banana'}, |
|
|
// physics:{barnesHut:{gravitationslPull:34}, solver:'banana'}, |
|
|
} |
|
|
} |
|
|
var network = new vis.Network(container, data, options); |
|
|
var network = new vis.Network(container, data, options); |
|
|