Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task-7

Public visualization

Viewing a saved revision (read-only)

ffc88d2c4ae74cf989e491d2732e4dfe

Task-7

0 stars1🌍 Public
JJames Cruz
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

This example demonstrates the basic setup of a VizHub project using D3.js and ES6 modules. It displays the text "Hello VizHub!" centered on the page using D3’s `select` function to target a `#message` div and set its content. The code imports `select` from the D3 library and a local `message` export from an ES6 module, showcasing modular code organization. Styling is handled via an external CSS file, and D3 is loaded from UNPKG.

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.