Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_6_Task_2

Public visualization

Activity_6_Task_2

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

This example demonstrates a minimal D3.js integration within a VizHub project, displaying a centered “Hello VizHub!” message. It shows how to load D3 v5 via UNPKG, import the `select` function from the D3 module, and use a local ES6 module (`myMessage.js`) to supply text content. The code applies a CSS style for large, centered typography and supports regex and variable declarations. The rendering approach uses the `select('#message')` API to set the DOM element’s text directly.

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.

Comments

Sign in to join the discussion.

MIT Licensed