diff --git a/HISTORY.md b/HISTORY.md index d57c9fc3..95e31364 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -6,7 +6,10 @@ http://visjs.org ### Graph -- Bugfix graphviz examples +- Bugfix graphviz examples. +- Bugfix labels position for smooth curves. +- Tweaked graphviz example physics. +- Updated physics documentation to stress importance of configurePhysics. ## 2014-03-05, version 0.6.0 diff --git a/docs/css/style.css b/docs/css/style.css index 12b5ac45..18916927 100644 --- a/docs/css/style.css +++ b/docs/css/style.css @@ -75,3 +75,8 @@ td { padding: 5px; vertical-align: top; } + +p.important_note { + color: #3a6baa; + font-weight:bold; +} \ No newline at end of file diff --git a/docs/graph.html b/docs/graph.html index 62f8630c..1ef56c14 100644 --- a/docs/graph.html +++ b/docs/graph.html @@ -1185,6 +1185,8 @@ var nodes = [ and the edges were modelled as springs. The new system employed the Barnes-Hut gravitational simulation model. The edges are still modelled as springs. To unify the physics system, the damping, repulsion distance and edge length have been combined in an physics option. To retain good behaviour, both the old repulsion model and the Barnes-Hut model have their own parameters. If no options for the physics system are supplied, the Barnes-Hut method will be used with the default parameters. If you want to customize the physics system easily, you can use the configurePhysics option. + +

Note: if the behaviour of your graph is not the way you want it, use configurePhysics as described below or by example 25.

 // These variables must be defined in an options object named physics.
@@ -1296,7 +1298,17 @@ var options = {
         This is the damping constant. It is used to dissipate energy from the system to have it settle in an equilibrium. More information is available here.
     
 
+

Configuration:

+Every dataset is different. Nodes can have different sizes based on content, interconnectivity can be high or low etc. Because of this, graph has a special option +that the user can use to explore which settings may be good for him or her. This is ment to be used during the development phase when you are implementing vis.js. Once you have found +settings you are happy with, you can supply them to graph using the physics options as described above. +On start, the default settings will be loaded. Keep in mind that selecting the hierarchical simulation mode disables smooth curves. These will not be enabled again afterwards. +
+var options = {
+    configurePhysics:true
+}
+

Data manipulation

By using the data manipulation feature of the graph you can dynamically create nodes, connect nodes with edges, edit nodes or delete nodes and edges.