Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_7_1

Public visualization

Viewing a saved revision (read-only)

b03ea464bec144adbf03b32273af242e

Activity_7_1

0 stars0🌍 Public
LLarry Johnson
Last edited Nov 7, 2024
Created on Nov 7, 2024
Forked from Hello VizHub

This example demonstrates the core workflow of a VizHub project, from importing local ES6 modules to rendering content with D3. It uses D3’s `select` function to target a `<div>` element and set its text content to a message exported from a separate `myMessage.js` module. The code also defines a numeric constant and a regular expression, showcasing basic JavaScript syntax alongside D3 integration. The page includes a CSS file that centers the message and enlarges its font size, with D3 loaded via a CDN script tag in the HTML.

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.