Skip to main content
100%

Activity6_vizhub

✓ Published0🌍 Public
Aanushapodapati99@gmail.com
Last edited Apr 12, 2024
Created on Apr 12, 2024

This example demonstrates the basic setup of a VizHub project using D3.js v5 and ES6 modules. It shows how to load D3 from a CDN via UNPKG, import specific functions like `select` from the D3 library, and import local modules such as `message` from `myMessage.js`. The code uses D3’s `select` method to update the text of an HTML div element, rendering the string "Hello VizHub!" centered on the page via CSS styling. The project serves as a minimal 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