From 415fb2f2f3184b9e266a3e684fc27b91b9b74255 Mon Sep 17 00:00:00 2001 From: jos Date: Thu, 30 Apr 2015 16:52:45 +0200 Subject: [PATCH] Moved the worldcup data into a separate file --- .../network/25_physics_configuration.html | 11 +- examples/network/26_staticSmoothCurves.html | 66 +- examples/network/27_world_cup_network.html | 10186 +--------------- .../28_world_cup_network_performance.html | 10103 +-------------- .../network/29_neighbourhood_highlight.html | 9984 +-------------- examples/network/data/WorldCup2014.js | 9975 +++++++++++++++ 6 files changed, 10217 insertions(+), 30108 deletions(-) create mode 100644 examples/network/data/WorldCup2014.js diff --git a/examples/network/25_physics_configuration.html b/examples/network/25_physics_configuration.html index f188e349..3277a38e 100644 --- a/examples/network/25_physics_configuration.html +++ b/examples/network/25_physics_configuration.html @@ -78,8 +78,12 @@ }; var options = { - stabilize: false, - configurePhysics:true + physics: { + stabilization: false + }, + configure: { + filter: 'physics' + } }; network = new vis.Network(container, data, options); @@ -89,7 +93,8 @@ }); } - + + diff --git a/examples/network/26_staticSmoothCurves.html b/examples/network/26_staticSmoothCurves.html index fb031b29..9854a61d 100644 --- a/examples/network/26_staticSmoothCurves.html +++ b/examples/network/26_staticSmoothCurves.html @@ -13,7 +13,8 @@ border: 1px solid lightgray; } - + + @@ -30,8 +31,9 @@

-Smooth curve type: - @@ -40,18 +42,22 @@ Smooth curve type: -
-Roundness (0..1): (0.5 is max roundness for continuous, 1.0 for the others) + +

+

+ Roundness (0..1): (0.5 is max roundness for continuous, 1.0 for the others) +

+
diff --git a/examples/network/27_world_cup_network.html b/examples/network/27_world_cup_network.html index 9dd80ec4..fac2d30e 100644 --- a/examples/network/27_world_cup_network.html +++ b/examples/network/27_world_cup_network.html @@ -1,10 +1,14 @@ - + - - Network | Static smooth curves - World Cup Network + + + + Network | Static smooth curves - World Cup Network - - + + + + - + +

Static smooth curves - World Cup Network

+
- The static smooth curves are based only on the positions of the connected nodes. - There are multiple ways to determine the way this curve is drawn. - This example shows the effect of the different types on a large network. -

- Also shown in this example is the inheritColor option of the edges as well as the roundness factor.
-

- To improve performance, the physics have been disabled with: -
{barnesHut: {gravitationalConstant: 0, centralGravity: 0, springConstant: 0}}
and we have enabled - the toggle hideEdgesOnDrag. -

+ The static smooth curves are based only on the positions of the connected + nodes. + There are multiple ways to determine the way this curve is drawn. + This example shows the effect of the different types on a large network. +

+ Also shown in this example is the inheritColor option of the edges as well as + the roundness factor.
+

+ To improve performance, the physics have been disabled with: +
{barnesHut: {gravitationalConstant: 0, centralGravity: 0, + springConstant: 0}}
and we have enabled + the toggle hideEdgesOnDrag. +

Smooth curve type:
inheritColor option:
-Roundness (0..1): (0.5 is max roundness for continuous, 1.0 for the others) -
-Hide edges on drag:
-Hide nodes on drag: +Roundness (0..1): (0.5 is max roundness for continuous, 1.0 +for the others) +
+Hide edges on drag:
+Hide nodes on drag:
- - - + + diff --git a/examples/network/28_world_cup_network_performance.html b/examples/network/28_world_cup_network_performance.html index 38ae575f..f6e85826 100644 --- a/examples/network/28_world_cup_network_performance.html +++ b/examples/network/28_world_cup_network_performance.html @@ -1,10 +1,14 @@ - + - - Network | Static smooth curves - World Cup Network + + + + Network | Static smooth curves - World Cup Network - - + + + + - + +

Performance - World Cup Network

+
- This example shows the performance of vis with a larger network. The edges in particular (~9200) are very computationally intensive - to draw. Drag and hold the graph to see the performance difference if the edges are hidden. -

- We use the following physics configuration:
- {barnesHut: {gravitationalConstant: -80000, springConstant: 0.001, springLength: 200}} -

+ This example shows the performance of vis with a larger network. The edges in + particular (~9200) are very computationally intensive + to draw. Drag and hold the graph to see the performance difference if the + edges are hidden. +

+ We use the following physics configuration:
+ {barnesHut: {gravitationalConstant: -80000, springConstant: 0.001, + springLength: 200}} +

- - - - + + diff --git a/examples/network/29_neighbourhood_highlight.html b/examples/network/29_neighbourhood_highlight.html index ec316f22..8c04a349 100644 --- a/examples/network/29_neighbourhood_highlight.html +++ b/examples/network/29_neighbourhood_highlight.html @@ -6,6 +6,8 @@ + +