Skip to main content
100%

Activity 6 task 1

✓ Published0🌍 Public
Vvchittimadha@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024

This example demonstrates a minimal VizHub setup that displays the text “Hello VizHub!” centered on the page using D3. It loads D3 v5 from UNPKG and uses the `select` function to target the `#message` div, setting its text content with D3’s `.text()` method. The code also imports a local ES6 module for the message string and includes a regular expression and a variable, though these are unused. The page structure is defined in HTML, with styles provided by an external CSS file.

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