d3.forceSimultation sprites

d3.forceSimultation sprites
0

#1

https://codepen.io/hbellatcodepen/pen/VMEoMw

I’m having some issues getting the sprite images to show up in the force-directed contiguity graph…

I created a sample div in the upper left of the pen, just to see if the classing of the sprite sheet would work, and it looks to. I can change that flag by changing the class just fine. But, with the nodes of the force simulation, I can’t see anything! I have looked at all the forums on this already and searched around on google, tried to just replicate what others have done, but nothing seems to work… I feel I am missing a small detail about nodes in general.

Any help would be fantastic! Thanks in advance :upside_down_face:


Using spritesheet as nodes image