Skip to main content
100%

JS in HTML

✓ Published2🌍 Public
AAndre J Denais
Last edited Apr 29, 2021
Created on Apr 29, 2021
Forked from HTML Starter

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 description

some notes from Get it Right in Black and White Episode 6

MIT Licensed

Similar vizzes