Also after the HTML div and svg tag to create, etc, etc …
Is there a way to simply create a local HTML & JS page with just the graph of “focus-context” page ?
If Observable doesn’t work this way, for this specific example, could you provide me a simple HTML+JS template that I could hack locally for “Focus+Context”?
For more on how to download and embed notebooks, please read our notebook:
As for the width variable, that’s provided by Observable’s standard library. It’s reactive, so whenever the window resizes, its value updates to reflect the new width, and any cells referencing the width will re-run. Hence, charts that are based on the reactive width are automatically responsive! You can see that in the above Focus + Context example (both on Observable and when embedded) by resizing the window.
I had the idea of :
-> hacking runtime.js by modifying cdn dot jsdelivr dot net by 127.0.0.1 (Not sure it’s a good idea, sounds a bit dirty ?)
-> trying to do it properly, (like ), but how could I prevent runtime.js to make those calls ?
So to sum-up, how to be able to use Observable fully without internet now from this point ?