JS in HTML
✓ Published0🌍 Public
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 descriptionMIT Licensed