I have been using d3 to create data visualizations for my research and i love it! I was quite happy when Observablehq came out, lots of examples, but its workings doesn’t suit me for a few reasons:
the data i use is not only quite heavy but also “private”, so I cannot publish the whole dataset publicly --> that means I can’t have public notebooks for my visualizations
I am creating an atlas and I need to host my visualizations (they are to interact with one another)
So in the end, I really need to use d3 in the classic “html, css, js” trio.
However, I find it very hard to “translate” from Observable notebooks to my local code. The notebook system is so different, with the cells etc, that,though I keep trying, I can’t quite understand how to tweak it into working locally. Also, I can’t figure out how to use some this for example:
Is there a way for me to: " import {legend} from “@d3/color-legend” " ?
I have tried downloading the code, I find it hard to read and not very convenient to try and incorporate into my personal code.
Is there any way this could become easier for those of us who would like to keep using d3 outside of observable? Maybe more documentation, or a perhaps an intro to the differences between notebooks and “traditional” code (not sure what to call it) so that we can better switch from one to the other?