Skip to main content
100%

Activity 6

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

This example demonstrates the minimal structure of a VizHub project, showing how to combine D3 with ES6 modules and local styling. It uses D3’s `select` function to set the text content of a `div` element, pulling a string from a separate local module via `import`. The page renders a single centered message, “Hello VizHub!”, with D3 loaded from a CDN and the DOM updated in plain JavaScript. The code also includes an unused variable and regular expression to illustrate syntax support.

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