Skip to main content
100%

JS in HTML

✓ Published0🌍 Public
Rroyable88
Last edited Dec 29, 2022
Created on Dec 26, 2022
Forked from HTML Starter

This example demonstrates how D3 v7 can be embedded directly within an HTML page alongside modular JavaScript imports to create a simple text-based visualization. The page displays the static string “Hello HTML!” centered on a blank canvas, while the accompanying script logs output to the browser console using `console.log`. The code imports D3’s `select` function, along with custom modules, illustrating a modular structure where constants like `thing` and `something` are composed across files. The visualization itself is minimal, focusing on the integration of D3’s selection API within a standard HTML document.

AI-generated description
MIT Licensed

Similar vizzes