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

Clustering not rendering all edges #472

Open
rickgithubs opened this issue Oct 29, 2014 · 11 comments
Open

Clustering not rendering all edges #472

rickgithubs opened this issue Oct 29, 2014 · 11 comments
Assignees
Labels

Comments

@rickgithubs
Copy link

It doesn't seem to be drawing the lines that are between two different clusters(the inverse), only between nodes in the same cluster.

Example:
http://brokencluster.ft1.us

In general though, all the Alchemy.js updates are looking good!

@hdngr
Copy link
Contributor

hdngr commented Nov 18, 2014

In your viz, alchemy.version gives me back 0.3.1 We now have version 0.4.0 out, and will soon have 0.4.1... Can you give it a try with the 0.4 version? My hope is that clustering is fixed. We also have a lot of new tests (but not yet for clustering), so other aspects of the app should not break ;-) when you update.

@rickgithubs
Copy link
Author

Sorry about that! I've changed it to use your cdn, and it's returning 0.4 now. The same problem seems to still persist however.

@rrwright
Copy link

I also have this problem in version 0.4.1 (which is provided by the CDN even though the current release looks to be 0.4.2)

@kylerob
Copy link
Contributor

kylerob commented Jun 19, 2015

It looks like the problem is with the Clustering.prototype.edgeGradient function not being called anywhere (on 0.4.1). So the edgeStyle function enters the final else if and calls:

gid = "cluster-gradient-" + id;
return "url(#" + gid + ")";

Since edgeGradient was never called, the gid referenced wasn't set up in defs, and the function is returning a url to nothing.

@razabramov
Copy link

So how come the example on the website is working?
http://graphalchemist.github.io/Alchemy/#/examples

Set
"root" : true

On a node object to get the lines

@jimmytidey
Copy link

Any news on this? I'd say the one in the examples isn't working either...

@jimmytidey
Copy link

Setting a root node works, but that seems to ruin the layout, and I still don't get the nice coloured rings around each node...

@ranshul
Copy link

ranshul commented Mar 8, 2016

It looks like the problem is with the Clustering.prototype.edgeGradient function not being called anywhere (on 0.4.1). So the edgeStyle function enters the final else if and calls:


gid = "cluster-gradient-" + id;
return "url(#" + gid + ")";

Since edgeGradient was never called, the gid referenced wasn't set up in defs, and the function is returning a url to nothing.

As @kylerob points out, this can be "fixed" in a local installation by changing the return value to a fixed color (suited my need). In the min js version, the line looks like this f="cluster-gradient-"+g,"<insert color here>").

This doesn't ruin the layout of the graph -- doesn't need root=true. If needed, a default edge color specification can be incorporated with some work.

@abhinavsv3
Copy link

I continue to have the same bug.

@ghost
Copy link

ghost commented Jul 25, 2017

I think everyone continues to have the same bug.

@rrwright
Copy link

This project is abandoned and very buggy. I suggest others check out the vis.js library. http://visjs.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants