From 0ccd71570e7938d8a5ed5070c23b2c3052815bb9 Mon Sep 17 00:00:00 2001 From: Thomas Wagenaar Date: Tue, 4 Apr 2017 10:02:09 +0200 Subject: [PATCH] Update README.md --- graph/README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/graph/README.md b/graph/README.md index feebfe3..a220a1e 100644 --- a/graph/README.md +++ b/graph/README.md @@ -11,8 +11,10 @@ The html file should include [d3v3](http://d3js.org/d3.v3.min.js) and [webcola]( - + + +
@@ -49,7 +51,7 @@ var data = myNetwork.graph(width, height); ``` #### Graph.js -Finally, in the graph.js file, make sure to set the `WIDTH` and `HEIGHT` to the desired amount. +In the graph.js file, make sure to set the `WIDTH` and `HEIGHT` to the desired amount. ```javascript [...] @@ -62,6 +64,9 @@ var HEIGHT = 500; // height of your graph [...] ``` +#### Graph.css +Make sure to include graph.css in your html file. This makes sure your connections are visible and makes the nodes more eye-appealing. + ## Disable constraints Normally graphs look like the network on the left. If you want a more fluid design, disable constraints, and you'll get a graph like on the right: