JS in HTML
✓ Published2🌍 Public
This example demonstrates a minimal, text-only visualization where the word "JS in HTML" is rendered at an extremely large font size (13em) and centered on the page. The visualization shows how D3 v6 can be imported and used alongside other JavaScript modules within a simple HTML document, with the code logging output to the browser's developer console. It uses D3's `d3.scaleLinear` and a named `select` import from the `d3` module, alongside custom modules (`something.js`, `thing.js`) that export strings. The page loads D3 from a CDN and executes both a main `script.js` and an automatically inserted `bundle.js`.
AI-generated descriptionsome notes from Get it Right in Black and White Episode 6
MIT Licensed