Skip to main content
100%

Activity6_Question1

✓ Published0🌍 Public
HHarshita Vairagade
Last edited Apr 13, 2024
Created on Apr 13, 2024
Forked from Hello VizHub

This example demonstrates a simple VizHub project that displays the text “Hello VizHub!” in the center of the page. It shows how to load D3 v5 from a CDN via script tag, import the `select` function from the `d3` module, and use a local ES6 module for the message string. The code sets the content of a `#message` div using D3’s `select().text()` method, with styling applied through CSS. It also includes unused variables, such as `f` and a regular expression, to illustrate basic syntax.

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