You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -11,15 +11,19 @@ This method will return an object, with its own graph and the different public m
11
11
12
12
To fill the graph, use :
13
13
14
-
sigInst.addNode('hello',{
15
-
'label': 'Hello'
16
-
}).addNode('world',{
17
-
'label': 'World!'
14
+
sigInst.addNode('hello', {
15
+
label: 'Hello',
16
+
x: Math.random(),
17
+
y: Math.random()
18
+
}).addNode('world', {
19
+
label: 'World!',
20
+
x: Math.random(),
21
+
y: Math.random()
18
22
}).addEdge('hello','world');
19
23
20
24
Also, a lot of different parameters are available to customize the way your instance work. For example :
21
25
22
-
instance.drawingProperties({
26
+
sigInst.drawingProperties({
23
27
defaultEdgeType: 'curve'
24
28
}).mouseProperties({
25
29
maxRatio: 32
@@ -52,4 +56,4 @@ To build *sigma.js* :
52
56
Much thanks also to [Mathieu Jacomy](http://www.medialab.sciences-po.fr/fr/team/mathieu-jacomy/) for having developped the main plugins, and for his help on the API and his experienced advices.
53
57
54
58
###Want to contribute?
55
-
The `TODO.txt` file at the root of the project contains different ideas of features that would improve *sigma.js*. You can also fill an [issue ticket](http://github.com/jacomyal/sigma.js/issues) if you find a bug.
59
+
The `TODO.txt` file at the root of the project contains different ideas of features that would improve *sigma.js*. You can also fill an [issue ticket](http://github.com/jacomyal/sigma.js/issues) if you find a bug.
0 commit comments