Skip to content

Instantly share code, notes, and snippets.

@modster
Last active January 3, 2023 08:28
Show Gist options
  • Save modster/850b73d7201c86d8a587ee46c7a56678 to your computer and use it in GitHub Desktop.
Save modster/850b73d7201c86d8a587ee46c7a56678 to your computer and use it in GitHub Desktop.
Use D3 Runtime API in Plain JavaScript to make cells a native part of your website, where they can be rearranged and will inherit the surrounding styles.
<div id="observablehq-283dc2f2"></div>
<p>Credit: <a href="https://observablehq.com/d/e6d73635a98814b7@519">Bar Chart by Eric Michael Greeff</a></p>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@observablehq/inspector@5/dist/inspector.css">
<script type="module">
import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@5/dist/runtime.js";
import define from "https://api.observablehq.com/d/[email protected]?v=3";
new Runtime().module(define, Inspector.into("#observablehq-283dc2f2"));
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment