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

Image on Node not woking #6

Open
eswrm opened this issue Jan 10, 2013 · 9 comments
Open

Image on Node not woking #6

eswrm opened this issue Jan 10, 2013 · 9 comments

Comments

@eswrm
Copy link

eswrm commented Jan 10, 2013

I've been developing social graph using the toolkit + jython on which it runs automated on server. My data has been formated to .gexf
(e.g)

Base on the document for visualization; to enable node to have image is by adding <viz:shape value="image" uri=""/>
But the problem is, it doesn't show at all.

Also, I used the .gexf javascript library (gexf-js) to view it on the browser, but still the images doesn't show.

Can anyone advice on what do on this?

artzub added a commit to artzub/gexf-js that referenced this issue Jan 10, 2013
@artzub
Copy link

artzub commented Jan 10, 2013

I didn't try this code, but i think that it must work.

@eswrm
Copy link
Author

eswrm commented Jan 11, 2013

Hi artzub,

Thank you for the reply. I'll check this one.

@eswrm
Copy link
Author

eswrm commented Jan 11, 2013

Hi! I tried your code but it doesn't work. And change a bit on

             _shap = _n.find("viz\\:shape,shape"),
             _img = _shap.attr("uri") //name of param which contains data about img url;

            _d.img = new Image();
            _d.img.onload = (function(_nd) { return function() { _nd.loaded = true; }})(_d);
            //_d.img.onerror 
            _d.src = _img;

Due to .gexf XML image format:

          viz:shape value="image" uri="http://graph.facebook.com/100002785904499/picture?type=large"

artzub added a commit to artzub/gexf-js that referenced this issue Jan 11, 2013
fix raphv#6 added: drawing image on node
@artzub
Copy link

artzub commented Jan 11, 2013

Try now...

@eswrm
Copy link
Author

eswrm commented Jan 11, 2013

Thanks! Your the man!

The image is now working but the thickness of the edges size increases. (see attached screen)
image_node_thick_edges

@artzub
Copy link

artzub commented Jan 11, 2013

Changes in my code not affected by the behavior of edges. My decision is superficial... I gave you a way for resolve.

@eswrm
Copy link
Author

eswrm commented Jan 11, 2013

Thanks again. got it fixed.

@artzub
Copy link

artzub commented Jan 11, 2013

I hope that I helped you =)

@scheckley
Copy link

is there any way for gexf-js to display node avatar images in the side bar for a selected node? (similar functionality as sigmajs exporter currently has)?

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

3 participants