Skip to main content
100%

Fork of Hello VizHub

✓ Published0🌍 Public
Aanushapodapati99@gmail.com
Last edited Mar 23, 2024
Created on Mar 23, 2024
Forked from Hello VizHub

This example demonstrates the basic setup of a VizHub project, showing how D3.js version 5 loads from a CDN and interacts with the DOM. It displays a static message, "Hello VizHub!", inside a styled `div` element. The code uses D3's `select` function to target the `#message` element and set its text content, while also importing a local ES6 module, `myMessage.js`, to supply the message string. The page structure is defined in `index.html`, with styles applied via `styles.css` to center and enlarge the text, and a separate `bundle.js` script handles the JavaScript execution.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes