Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

JS in HTML

Public visualization

JS in HTML

0 stars0🌍 Public
EEd Smale
Last edited Jul 20, 2023
Created on Jul 20, 2023
Forked from HTML Starter

This example demonstrates how JavaScript code can be integrated directly into an HTML page using D3 v7. It defines three modules—`index.js`, `something.js`, and `thing.js`—that import from each other using ES6 syntax. The `index.html` file loads the D3 library from a CDN and displays a simple “Hello HTML” message styled with CSS. The JavaScript modules log text and the D3 `select` function to the console, showcasing modular code organization alongside standard HTML rendering.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed