On my journey to learn d3, I often have difficulties passing from vanilla JS (standard js right?) to observable code and vice versa. Problems rise when I have external data or when I need to update the chart (zoom, pan ect…)
So my question is:
Is there a well defined methodology to port code from let’s say https://bl.ocks.org/ to observable and vice versa ?
I did write down some of the steps I used in my last porting attempt (https://beta.observablehq.com/@maliky/d3js-enter-update-and-exit) but since I did not succeed entirely I must be missing a lot.
Here’s another attempt (https://beta.observablehq.com/@maliky/conversation-visu) to port something working on its own elsewhere (https://idev.kone.ci/visu/uvci/conv5) to observable.