Skip to main content
100%

Activity 6

✓ Published0🌍 Public
RRishabh Sharma
Last edited Apr 5, 2024
Created on Apr 5, 2024
Forked from Hello VizHub

This example demonstrates a minimal D3.js visualization that displays a centered text message, "Hello VizHub!," using the `d3.select` API to target a specific DOM element. The page loads D3 version 5.16.0 from UNPKG and imports a local ES6 module, `myMessage.js`, to provide the text content. Styling is handled through a separate CSS file, which positions the message with large, centered font. The code highlights the basic workflow of combining external libraries and local modules within a VizHub project.

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.
MIT Licensed

Similar vizzes