Skip to main content
100%

Activity-6

✓ Published1🌍 Public
Aakitisaitejareddy@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024

This example demonstrates basic D3.js and ES6 module usage within a VizHub project. It displays a large, centered "Hello VizHub!" message on a webpage, styled through an external CSS file. The code imports the `select` function from D3 and a custom `message` string from a local module, using `select('#message').text(message)` to set the text content. The page loads D3 version 5.16.0 from a CDN and relies on a pre-built `bundle.js` to execute the imported 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