Skip to main content
100%

Activity 6_Task 2

✓ Published1🌍 Public
Ttallavijayalakshmi0710@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024

This example demonstrates a minimal D3.js integration within a VizHub project, rendering the text "Hello VizHub!" prominently in the center of the page. It shows how to load D3 v5 via UNPKG and use the `import` statement to access the `select` function from the D3 module for DOM manipulation. The code also imports a local ES6 module, `myMessage.js`, which exports the displayed string, and applies styling through an external CSS file. This serves as a foundational template for combining D3 with modular JavaScript.

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