Skip to main content
100%

Activity-6 Question-1

✓ Published1🌍 Public
Ssannihitha.k23@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This example demonstrates a minimal D3.js setup within VizHub, showing how to load D3 v5 from a CDN and use an ES6 module to display a simple text message. The code imports the `select` function from D3 and uses it to set the text content of a `div` element with the ID `message`. It also imports a local module, `myMessage.js`, which exports the string `'Hello VizHub!'`. The rendered output is a large, centered greeting styled via external CSS, illustrating basic DOM manipulation and module imports.

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