Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_6

Public visualization

Viewing a saved revision (read-only)

04a66ad692f246819b2ee40ab0aabf5c

Activity_6

0 stars0🌍 Public
Vvarshithainaganti@gmail.com
Last edited Oct 19, 2024
Created on Oct 19, 2024
Forked from Hello VizHub

This example demonstrates basic VizHub project structure with modular ES6 imports and D3.js integration. It renders a simple text message centered on the page using D3’s `select` function to target a div element and set its content. The code imports `select` from the D3 library via UNPKG, imports a string from a local `myMessage.js` module, and applies styling through an external CSS file. The example highlights how to combine CDN-loaded libraries, local modules, and styles in an HTML document.

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.