Skip to main content
100%

activity 6

✓ Published0🌍 Public
Ppjdhungana@gmail.com
Last edited Jun 14, 2023
Created on Jun 14, 2023
Forked from Hello VizHub

This example demonstrates how to combine D3.js selection methods with ES6 module imports in a VizHub project. The page displays the text "Hello VizHub!" centered at a large font size using D3’s `select` function to target a div element and set its content. The message text itself comes from a separate local module, `myMessage.js`, while D3 v5 is loaded via a CDN script tag. The code shows a minimal workflow for importing both D3 APIs and custom modules, with styling handled by external CSS.

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