Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6

Public visualization

Viewing a saved revision (read-only)

77e4d8f12f0447bdb6cb4979ffefbc3e

Activity 6

0 stars1🌍 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.