Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6

Public visualization

Viewing a saved revision (read-only)

a35b58779770443a9567a165b7ffe34e

Activity 6

0 stars1🌍 Public
Ssairamisetti3829@gmail.com
Last edited Oct 16, 2024
Created on Oct 16, 2024
Forked from Hello VizHub

This example demonstrates how to integrate D3 with ES6 modules in VizHub, importing both the D3 library and a local module to dynamically update text on a webpage. It uses `select` from D3 to target an HTML div and set its content to a string exported from `myMessage.js`. The page loads D3 via UNPKG and includes external CSS styling, showcasing a minimal setup for mixing CDN-loaded libraries with modern JavaScript module syntax.

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.