Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic example doesn't work #136

Closed
jgauffin opened this issue Oct 26, 2013 · 6 comments
Closed

Basic example doesn't work #136

jgauffin opened this issue Oct 26, 2013 · 6 comments

Comments

@jgauffin
Copy link

The basic example on the first page doesn't work:

var sigRoot = document.getElementById('sig');
var sigInst = sigma.init(sigRoot);
sigInst.addNode('hello',{
  label: 'Hello',
  color: '#ff0000'
}).addNode('world',{
  label: 'World !',
  color: '#00ff00'
}).addEdge('hello_world','hello','world').draw();

The nodes are not being layedout but are put at the same position.

@coyotebush
Copy link

See also #44 -- the example from the README in the repository works better.

@jgauffin
Copy link
Author

So sigma can't layout nodes for you?

@tlau
Copy link

tlau commented Nov 7, 2013

Even with x and y coordinates as specified in the README, the nodes are being displayed on top of each other for me.

@gabrielhpugliese
Copy link

Anyone had success with the basic example ?
For me it throw the error on Chrome's console: Uncaught Error: Edge's target "undefined" does not exist yet.
http://jsfiddle.net/HhN75/1/

@gabrielhpugliese
Copy link

Woo, working now. The edge can't be anon: http://jsfiddle.net/HhN75/2/

@jacomyal
Copy link
Owner

Duplicate #71.

A---- pushed a commit to A----/sigma.js that referenced this issue Sep 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants