Request help to port Force Simulation to Observable

Hi !
I was trying to port this bl.ocks Force Simulation - to Observablehq, I started now and I’m not so good yet, so I was wondering if anyone ported it yet or could help me. I created this notebook ( Force Simulation / fiorins / Observable ) but seems it’s not working.
Thank you.

Hi @Brock
I think the issue is mainly the use of the d3.csv() function, which is meant to read an external file, whereas your data is actually in the notebook already and you can simply use d3.csvParse().
Here is a fork of your notebook with the changes that seems to work.

1 Like

That’s awesome, thank you so much!
Great, I didn’t understand how the that function worked, good to know.