Skip to main content
100%

Activity_7_Q1

✓ Published1🌍 Public
GGOPI MUPPURI
Last edited Nov 4, 2024
Created on Nov 4, 2024
Forked from Hello VizHub

This example demonstrates a minimal D3.js setup within VizHub, displaying the text “Hello VizHub!” centered on the page. It shows how to load D3 v5 from a CDN via UNPKG and import specific API functions, such as `select`, from the library. The code also illustrates local ES6 module imports by importing a `message` constant from `./myMessage`, and includes a global regular expression and number variable. The rendering approach uses D3’s `select` method to set the text content of an HTML div element, with styling controlled by an external CSS file.

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