Skip to main content
100%

Assignment2 Q1

✓ Published0🌍 Public
NNagateja99
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from Hello VizHub

This example demonstrates how to load and display a message using D3.js version 5 within a VizHub project. It shows a simple text output centered on the page by combining D3’s `select` function with a local ES6 module import. The code imports `message` from `myMessage.js` and sets the content of the `#message` div to “Hello VizHub!”, while styling the text with CSS. The visualization uses D3’s core selection API to manipulate the DOM, illustrating basic setup for modular ES6 imports and external library loading via UNPKG.

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