Data Visualisation Force-Directed Graph flags not showing up

Data Visualisation Force-Directed Graph flags not showing up
0

#1

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


#2

You can’t append img to svg.


#3

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


#4

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


#5

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 ?


#6

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


#7

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


#9

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: