Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity 6 task 3

Public visualization

Viewing a saved revision (read-only)

c001835835f0476ba9e63a8bba44c40f

activity 6 task 3

0 stars0🌍 Public
NNukaShravanKumar
Last edited Jun 25, 2023
Created on Jun 25, 2023
Forked from Hello VizHub

This example demonstrates the use of D3.js in a minimal VizHub setup, showing how to import modules and manipulate the DOM. It displays a single text message, “Hello VizHub!”, centered on the page. The code imports the `select` function from D3 and a custom message from a local ES6 module. D3’s `select` method targets the `#message` div and sets its text content, while CSS handles the large, centered font styling. The example serves as a basic template for combining D3 with local and external modules.

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.