Data Visualisation Force-Directed Graph flags not showing up

Hello fellow campers !

I have almost finished the Force-Directed Graph, but the flags are not showing.

Would you know why ?

Challenge: https://www.freecodecamp.com/challenges/show-national-contiguity-with-a-force-directed-graph

Code: https://codepen.io/anon/pen/vmmZjO

You can’t append img to svg.

I know :smiley: I am looking for a solution.

My solution:
https://medium.com/chingu/fcc-speedrun-d3-force-graph-61bea16e31a4

I looked at your code and modified mine accordingly while crediting you of course. But I still don’t manage to get it to work ? Could you please have a quick look ?

Btw, I love the speedrun you’re doing. I just wish I had discovered it sooner, I am almost done with all the certifications XD

There are two divs - one for lines and second for flags.
And I think there are some limitations with embedding pictures in codepen.

Also Speedrun 2 is still running: https://github.com/P1xt/chingu-fcc-speedrun-challenge

I did add a second div, but it still does not work. I must be missing something else, but I don’t know what. And I don’t have any errors in console.

Will have a look at the speedrun :slight_smile: